projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58d6aa8
)
mesa: test against MESA_FORMAT_NONE in _mesa_GetTexLevelParameteriv()
author
Brian Paul
<brianp@vmware.com>
Thu, 28 Jul 2011 15:43:09 +0000
(09:43 -0600)
committer
Brian Paul
<brianp@vmware.com>
Thu, 28 Jul 2011 23:24:57 +0000
(17:24 -0600)
src/mesa/main/texparam.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/texparam.c
b/src/mesa/main/texparam.c
index c4ec29533e2ac507d65338c962455c92dee62a20..3f771f08bc6176f55fcf6fc48e20a61eea0531d4 100644
(file)
--- 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;