[PATCH 1/5] wined3d: Decrement the vertex declaration refcount on stateblock destruction.

Henri Verbeet hverbeet at codeweavers.com
Tue Apr 19 13:05:48 CDT 2011


---
 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++)
         {
-- 
1.7.3.4




More information about the wine-patches mailing list