Stefan Dösinger : wined3d: Unload vertex weight data in unloadVertexData.

Alexandre Julliard julliard at wine.codeweavers.com
Thu May 10 07:49:51 CDT 2007


Module: wine
Branch: master
Commit: 4a8b55d456f4df544875baf0eabe765a7c96918b
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=4a8b55d456f4df544875baf0eabe765a7c96918b

Author: Stefan Dösinger <stefan at codeweavers.com>
Date:   Sun May  6 23:47:20 2007 +0200

wined3d: Unload vertex weight data in unloadVertexData.

---

 dlls/wined3d/state.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/dlls/wined3d/state.c b/dlls/wined3d/state.c
index 1b5115c..8d571a6 100644
--- a/dlls/wined3d/state.c
+++ b/dlls/wined3d/state.c
@@ -2472,6 +2472,9 @@ static inline void unloadVertexData(IWineD3DStateBlockImpl *stateblock) {
     if (GL_SUPPORT(EXT_SECONDARY_COLOR)) {
         glDisableClientState(GL_SECONDARY_COLOR_ARRAY_EXT);
     }
+    if (GL_SUPPORT(ARB_VERTEX_BLEND)) {
+        glDisableClientState(GL_WEIGHT_ARRAY_ARB);
+    }
     for (texture_idx = 0; texture_idx < GL_LIMITS(textures); ++texture_idx) {
         GL_EXTCALL(glClientActiveTextureARB(GL_TEXTURE0_ARB + texture_idx));
         glDisableClientState(GL_TEXTURE_COORD_ARRAY);




More information about the wine-cvs mailing list