wined3d: Release the vertex declaration during stateblock cleanup.

This commit is contained in:
H. Verbeet 2006-02-10 14:52:27 +01:00 committed by Alexandre Julliard
parent bac34c35aa
commit c2fe85e658
1 changed files with 4 additions and 0 deletions

View File

@ -84,6 +84,10 @@ ULONG WINAPI IWineD3DStateBlockImpl_Release(IWineD3DStateBlock *iface) {
IWineD3DVertexShader_Release(This->vertexShader);
}
if (NULL != This->vertexDecl) {
IWineD3DVertexDeclaration_Release(This->vertexDecl);
}
/* NOTE: according to MSDN: The applicaion is responsible for making sure the texture references are cleared down */
for (counter = 0; counter < GL_LIMITS(textures); counter++) {
if (This->textures[counter]) {