wgl: Fix a typo in the WGL_TEXTURE_TARGET_ARB emulation code.

This commit is contained in:
Roderick Colenbrander 2007-07-27 11:00:19 +02:00 committed by Alexandre Julliard
parent 4682f8f77a
commit 6f3e8a2fcf
1 changed files with 3 additions and 3 deletions

View File

@ -2246,9 +2246,9 @@ static GLboolean WINAPI X11DRV_wglQueryPbufferARB(HPBUFFERARB hPbuffer, int iAtt
return GL_FALSE;
}
switch (object->texture_target) {
case GL_TEXTURE_1D: *piValue = WGL_TEXTURE_CUBE_MAP_ARB; break;
case GL_TEXTURE_2D: *piValue = WGL_TEXTURE_1D_ARB; break;
case GL_TEXTURE_CUBE_MAP: *piValue = WGL_TEXTURE_2D_ARB; break;
case GL_TEXTURE_1D: *piValue = WGL_TEXTURE_1D_ARB; break;
case GL_TEXTURE_2D: *piValue = WGL_TEXTURE_2D_ARB; break;
case GL_TEXTURE_CUBE_MAP: *piValue = WGL_TEXTURE_CUBE_MAP_ARB; break;
}
}
}