From 0de0e817939c2737f297aebdfc253e962cb644a0 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Tue, 19 Apr 2011 20:05:48 +0200 Subject: [PATCH] wined3d: Decrement the vertex declaration refcount on stateblock destruction. --- dlls/wined3d/stateblock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/wined3d/stateblock.c b/dlls/wined3d/stateblock.c index 27b9831d4eb..79fbb2ed9fb 100644 --- a/dlls/wined3d/stateblock.c +++ b/dlls/wined3d/stateblock.c @@ -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++) {