diff options
author | Brian Paul <[email protected]> | 2011-01-25 18:45:44 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2011-01-25 18:53:00 -0700 |
commit | 0bfd174fb510320c7a7ee3784ac50849322f9c5d (patch) | |
tree | 290062b68112344694a267d210d844ec0f493f0f /src | |
parent | 365f658602c0984d83e2b9617967803c70f7043a (diff) |
mesa: remove isProxy local var
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/main/texparam.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mesa/main/texparam.c b/src/mesa/main/texparam.c index 6e4a8a5537f..6e14face4dd 100644 --- a/src/mesa/main/texparam.c +++ b/src/mesa/main/texparam.c @@ -834,7 +834,6 @@ _mesa_GetTexLevelParameteriv( GLenum target, GLint level, const struct gl_texture_unit *texUnit; struct gl_texture_object *texObj; const struct gl_texture_image *img = NULL; - GLboolean isProxy; GLint maxLevels; gl_format texFormat; GET_CURRENT_CONTEXT(ctx); @@ -875,8 +874,6 @@ _mesa_GetTexLevelParameteriv( GLenum target, GLint level, texFormat = img->TexFormat; - isProxy = _mesa_is_proxy_texture(target); - switch (pname) { case GL_TEXTURE_WIDTH: *params = img->Width; @@ -986,7 +983,8 @@ _mesa_GetTexLevelParameteriv( GLenum target, GLint level, /* GL_ARB_texture_compression */ case GL_TEXTURE_COMPRESSED_IMAGE_SIZE: - if (_mesa_is_format_compressed(texFormat) && !isProxy) { + if (_mesa_is_format_compressed(texFormat) && + !_mesa_is_proxy_texture(target)) { *params = _mesa_format_image_size(texFormat, img->Width, img->Height, img->Depth); } |