diff options
author | Brian Paul <[email protected]> | 2009-09-27 20:59:28 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-09-27 20:59:28 -0600 |
commit | 5767a677a0129015dcc568b6f5d2d323fae8a63f (patch) | |
tree | 83d4c30171aaa6f964c06872d4ddc80fa32c80b5 /src/mesa | |
parent | a2b663fe38a6e42786092412402aacf8f6d071f8 (diff) |
mesa: fix GL_TEXTURE_LUMINANCE_SIZE query
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/main/texparam.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/texparam.c b/src/mesa/main/texparam.c index 5f2c890ec8e..d38d5a4c230 100644 --- a/src/mesa/main/texparam.c +++ b/src/mesa/main/texparam.c @@ -819,7 +819,7 @@ _mesa_GetTexLevelParameteriv( GLenum target, GLint level, *params = 0; else { *params = _mesa_get_format_bits(texFormat, pname); - if (img->TexFormat->LuminanceBits == 0) { + if (*params == 0) { /* luminance probably stored as rgb texture */ *params = MIN2(_mesa_get_format_bits(texFormat, GL_TEXTURE_RED_SIZE), _mesa_get_format_bits(texFormat, GL_TEXTURE_GREEN_SIZE)); |