H. Verbeet : wined3d: Unload vertex weight data in case of EXT_VERTEX_WEIGHTING as well.

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


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

Author: H. Verbeet <hverbeet at gmail.com>
Date:   Wed May  9 19:07:33 2007 +0200

wined3d: Unload vertex weight data in case of EXT_VERTEX_WEIGHTING as well.

---

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

diff --git a/dlls/wined3d/state.c b/dlls/wined3d/state.c
index d828fcc..281f8bb 100644
--- a/dlls/wined3d/state.c
+++ b/dlls/wined3d/state.c
@@ -2538,6 +2538,8 @@ static inline void unloadVertexData(IWineD3DStateBlockImpl *stateblock) {
     }
     if (GL_SUPPORT(ARB_VERTEX_BLEND)) {
         glDisableClientState(GL_WEIGHT_ARRAY_ARB);
+    } else if (GL_SUPPORT(EXT_VERTEX_WEIGHTING)) {
+        glDisableClientState(GL_VERTEX_WEIGHT_ARRAY_EXT);
     }
     for (texture_idx = 0; texture_idx < GL_LIMITS(textures); ++texture_idx) {
         GL_EXTCALL(glClientActiveTextureARB(GL_TEXTURE0_ARB + texture_idx));




More information about the wine-cvs mailing list