Commit 56395ca5 authored by H. Verbeet's avatar H. Verbeet Committed by Alexandre Julliard

wined3d: Use GL_LIMITS(samplers) instead of GL_LIMITS(sampler_stages) in…

wined3d: Use GL_LIMITS(samplers) instead of GL_LIMITS(sampler_stages) in IWineD3DSurfaceImpl_UnlockRect.
parent 1a40c4c5
......@@ -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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment