mesa: test against MESA_FORMAT_NONE in _mesa_GetTexLevelParameteriv()
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user