[PATCH 3/5] wined3d: Keep a reference to the vertex declaration initially captured by CreateStateBlock() as well.
Henri Verbeet
hverbeet at codeweavers.com
Tue Oct 6 02:05:55 CDT 2009
---
dlls/wined3d/stateblock.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/wined3d/stateblock.c b/dlls/wined3d/stateblock.c
index 01783c5..8bbde2f 100644
--- a/dlls/wined3d/stateblock.c
+++ b/dlls/wined3d/stateblock.c
@@ -1653,6 +1653,7 @@ HRESULT stateblock_init(IWineD3DStateBlockImpl *stateblock, IWineD3DDeviceImpl *
if (stateblock->textures[i]) IWineD3DBaseTexture_AddRef(stateblock->textures[i]);
}
+ if (stateblock->vertexDecl) IWineD3DVertexDeclaration_AddRef(stateblock->vertexDecl);
if (stateblock->pIndexData) IWineD3DBuffer_AddRef(stateblock->pIndexData);
if (stateblock->vertexShader) IWineD3DVertexShader_AddRef(stateblock->vertexShader);
if (stateblock->pixelShader) IWineD3DPixelShader_AddRef(stateblock->pixelShader);
--
1.6.0.6
More information about the wine-patches
mailing list