Henri Verbeet : wined3d: Keep a reference to the vertex declaration initially captured by CreateStateBlock () as well.
Alexandre Julliard
julliard at winehq.org
Tue Oct 6 10:35:50 CDT 2009
Module: wine
Branch: master
Commit: 5c229715610532373525c1736090ff344d51e44d
URL: http://source.winehq.org/git/wine.git/?a=commit;h=5c229715610532373525c1736090ff344d51e44d
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Tue Oct 6 09:05:55 2009 +0200
wined3d: Keep a reference to the vertex declaration initially captured by CreateStateBlock() as well.
---
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);
More information about the wine-cvs
mailing list