From 1d57658ee545f6ad01c378dea46058e5513f629c Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Mon, 15 Sep 2003 19:57:11 +0000 Subject: minor simplification --- src/mesa/main/get.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/mesa') diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c index 98a60ca20e..0105c52b67 100644 --- a/src/mesa/main/get.c +++ b/src/mesa/main/get.c @@ -1040,7 +1040,7 @@ _mesa_GetBooleanv( GLenum pname, GLboolean *params ) break; case GL_CLIENT_ACTIVE_TEXTURE_ARB: CHECK_EXTENSION_B(ARB_multitexture, pname); - *params = INT_TO_BOOL(GL_TEXTURE0_ARB + ctx->Array.ActiveTexture); + *params = INT_TO_BOOL(GL_TEXTURE0_ARB + clientUnit); break; /* GL_ARB_texture_cube_map */ @@ -2579,7 +2579,7 @@ _mesa_GetDoublev( GLenum pname, GLdouble *params ) break; case GL_CLIENT_ACTIVE_TEXTURE_ARB: CHECK_EXTENSION_D(ARB_multitexture, pname); - *params = (GLdouble) (GL_TEXTURE0_ARB + ctx->Array.ActiveTexture); + *params = (GLdouble) (GL_TEXTURE0_ARB + clientUnit); break; /* GL_ARB_texture_cube_map */ @@ -4118,7 +4118,7 @@ _mesa_GetFloatv( GLenum pname, GLfloat *params ) break; case GL_CLIENT_ACTIVE_TEXTURE_ARB: CHECK_EXTENSION_F(ARB_multitexture, pname); - *params = (GLfloat) (GL_TEXTURE0_ARB + ctx->Array.ActiveTexture); + *params = (GLfloat) (GL_TEXTURE0_ARB + clientUnit); break; /* GL_ARB_texture_cube_map */ @@ -5630,7 +5630,7 @@ _mesa_GetIntegerv( GLenum pname, GLint *params ) break; case GL_CLIENT_ACTIVE_TEXTURE_ARB: CHECK_EXTENSION_I(ARB_multitexture, pname); - *params = GL_TEXTURE0_ARB + ctx->Array.ActiveTexture; + *params = GL_TEXTURE0_ARB + clientUnit; break; /* GL_ARB_texture_cube_map */ -- cgit v1.2.3