H. Verbeet : wined3d: Use GL_LIMITS(samplers) instead of GL_LIMITS( sampler_stages) in IWineD3DSurfaceImpl_UnlockRect.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Jul 31 04:32:07 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: 56395ca5f30ff2aed0a86406036c80c53a22c4d8
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=56395ca5f30ff2aed0a86406036c80c53a22c4d8

Author: H. Verbeet <hverbeet at gmail.com>
Date:   Sun Jul 30 23:26:37 2006 +0200

wined3d: Use GL_LIMITS(samplers) instead of GL_LIMITS(sampler_stages) in IWineD3DSurfaceImpl_UnlockRect.

---

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

diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index de9322b..67cd009 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -1130,7 +1130,7 @@ static HRESULT WINAPI IWineD3DSurfaceImp
             }
 
             /* Disable higher textures before calling glDrawPixels */
-            for(tex = 1; tex < GL_LIMITS(sampler_stages); tex++) {
+            for(tex = 1; tex < GL_LIMITS(samplers); tex++) {
                 if (GL_SUPPORT(ARB_MULTITEXTURE)) {
                     GL_EXTCALL(glActiveTextureARB(GL_TEXTURE0_ARB + tex));
                     checkGLcall("glActiveTextureARB");




More information about the wine-cvs mailing list