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

This commit is contained in:
H. Verbeet 2006-07-30 23:26:37 +02:00 committed by Alexandre Julliard
parent 1a40c4c552
commit 56395ca5f3
1 changed files with 1 additions and 1 deletions

View File

@ -1130,7 +1130,7 @@ static HRESULT WINAPI IWineD3DSurfaceImpl_UnlockRect(IWineD3DSurface *iface) {
}
/* 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");