diff options
author | Brian Paul <[email protected]> | 2003-09-15 19:57:11 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2003-09-15 19:57:11 +0000 |
commit | 1d57658ee545f6ad01c378dea46058e5513f629c (patch) | |
tree | 141981cdbc27a9125875a194a3106c37c0390653 /src/mesa | |
parent | aa00d122b81a118eca3b43c66f17d988b1aa62d3 (diff) |
minor simplification
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/main/get.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c index 98a60ca20e6..0105c52b674 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 */ |