wined3d: Keep a reference to the vertex declaration initially captured by CreateStateBlock() as well.

This commit is contained in:
Henri Verbeet 2009-10-06 09:05:55 +02:00 committed by Alexandre Julliard
parent b5de2fcb1c
commit 5c22971561
1 changed files with 1 additions and 0 deletions

View File

@ -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);