H. Verbeet : wined3d:
Release the vertex declaration during stateblock cleanup.
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Feb 10 08:55:03 CST 2006
Module: wine
Branch: refs/heads/master
Commit: c2fe85e6587b2a4353f2ff341064ad6eed55e137
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=c2fe85e6587b2a4353f2ff341064ad6eed55e137
Author: H. Verbeet <hverbeet at gmail.com>
Date: Fri Feb 10 14:52:27 2006 +0100
wined3d: Release the vertex declaration during stateblock cleanup.
---
dlls/wined3d/stateblock.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/dlls/wined3d/stateblock.c b/dlls/wined3d/stateblock.c
index 8ab5429..fe0a98f 100644
--- a/dlls/wined3d/stateblock.c
+++ b/dlls/wined3d/stateblock.c
@@ -84,6 +84,10 @@ ULONG WINAPI IWineD3DStateBlockImpl_Rele
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]) {
More information about the wine-cvs
mailing list