diff options
author | marha <marha@users.sourceforge.net> | 2011-07-29 09:02:30 +0200 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2011-07-29 09:02:30 +0200 |
commit | 28257038c4f13ac26127d536c14c922aa036efed (patch) | |
tree | 12972a932e1c9f6cd4b3898dbc09cbf43bd16b0d /mesalib/src/mesa/main/texparam.c | |
parent | 01dc3700436c1fa006d38434e110b68b5d9702ce (diff) | |
download | vcxsrv-28257038c4f13ac26127d536c14c922aa036efed.tar.gz vcxsrv-28257038c4f13ac26127d536c14c922aa036efed.tar.bz2 vcxsrv-28257038c4f13ac26127d536c14c922aa036efed.zip |
libX11 mesa pixman git update 29 jul 2011
Diffstat (limited to 'mesalib/src/mesa/main/texparam.c')
-rw-r--r-- | mesalib/src/mesa/main/texparam.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesalib/src/mesa/main/texparam.c b/mesalib/src/mesa/main/texparam.c index c4ec29533..3f771f08b 100644 --- a/mesalib/src/mesa/main/texparam.c +++ b/mesalib/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; |