Module: wine Branch: master Commit: 0de0e817939c2737f297aebdfc253e962cb644a0 URL: http://source.winehq.org/git/wine.git/?a=commit;h=0de0e817939c2737f297aebdfc...
Author: Henri Verbeet hverbeet@codeweavers.com Date: Tue Apr 19 20:05:48 2011 +0200
wined3d: Decrement the vertex declaration refcount on stateblock destruction.
---
dlls/wined3d/stateblock.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/wined3d/stateblock.c b/dlls/wined3d/stateblock.c index 27b9831..79fbb2e 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++) {