diff options
author | Brian Paul <[email protected]> | 2011-07-28 09:43:09 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2011-07-28 17:24:57 -0600 |
commit | 26684e0b1a857cc16a2c6f2b542e5ccf3da5acf5 (patch) | |
tree | 8f904f5133cf6a50c48c13ee32de6e7330654048 /src | |
parent | 58d6aa82878fc901d4dadd39e308a5d88b064997 (diff) |
mesa: test against MESA_FORMAT_NONE in _mesa_GetTexLevelParameteriv()
Diffstat (limited to 'src')
-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 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; |