[1/5] wined3d: Unload vertex weight data in case of EXT_VERTEX_WEIGHTING as well

H. Verbeet hverbeet at gmail.com
Wed May 9 12:07:33 CDT 2007


This set applies on top of Stefan's

Changelog:
  - Unload vertex weight data in case of EXT_VERTEX_WEIGHTING as well
-------------- next part --------------
---

 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-patches mailing list