wined3d: Decrement the vertex declaration refcount on stateblock destruction.

This commit is contained in:
Henri Verbeet 2011-04-19 20:05:48 +02:00 committed by Alexandre Julliard
parent 513e5c98a7
commit 0de0e81793
1 changed files with 1 additions and 1 deletions

View File

@ -478,7 +478,7 @@ ULONG CDECL wined3d_stateblock_decref(struct wined3d_stateblock *stateblock)
int counter;
if (stateblock->state.vertex_declaration)
wined3d_vertex_declaration_incref(stateblock->state.vertex_declaration);
wined3d_vertex_declaration_decref(stateblock->state.vertex_declaration);
for (counter = 0; counter < MAX_COMBINED_SAMPLERS; counter++)
{