summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2011-07-28 09:43:09 -0600
committerBrian Paul <[email protected]>2011-07-28 17:24:57 -0600
commit26684e0b1a857cc16a2c6f2b542e5ccf3da5acf5 (patch)
tree8f904f5133cf6a50c48c13ee32de6e7330654048 /src/mesa
parent58d6aa82878fc901d4dadd39e308a5d88b064997 (diff)
mesa: test against MESA_FORMAT_NONE in _mesa_GetTexLevelParameteriv()
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/texparam.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/texparam.c b/src/mesa/main/texparam.c
index c4ec29533e2..3f771f08bc6 100644
--- a/src/mesa/main/texparam.c
+++ b/src/mesa/main/texparam.c
@@ -888,7 +888,7 @@ _mesa_GetTexLevelParameteriv( GLenum target, GLint level,
texObj = _mesa_select_tex_object(ctx, texUnit, target);
img = _mesa_select_tex_image(ctx, texObj, target, level);
- if (!img || !img->TexFormat) {
+ if (!img || img->TexFormat == MESA_FORMAT_NONE) {
/* undefined texture image */
if (pname == GL_TEXTURE_COMPONENTS)
*params = 1;