Commit 0de0e817 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Decrement the vertex declaration refcount on stateblock destruction.

parent 513e5c98
......@@ -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++)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment