Module: wine Branch: refs/heads/master Commit: 56395ca5f30ff2aed0a86406036c80c53a22c4d8 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=56395ca5f30ff2aed0a86406...
Author: H. Verbeet hverbeet@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");