mesa: better error message
This commit is contained in:
@@ -1268,8 +1268,8 @@ texture_error_check( GLcontext *ctx, GLenum target,
|
|||||||
if (_mesa_base_tex_format(ctx, internalFormat) < 0) {
|
if (_mesa_base_tex_format(ctx, internalFormat) < 0) {
|
||||||
if (!isProxy) {
|
if (!isProxy) {
|
||||||
_mesa_error(ctx, GL_INVALID_VALUE,
|
_mesa_error(ctx, GL_INVALID_VALUE,
|
||||||
"glTexImage%dD(internalFormat=0x%x)",
|
"glTexImage%dD(internalFormat=%s)",
|
||||||
dimensions, internalFormat);
|
dimensions, _mesa_lookup_enum_by_nr(internalFormat));
|
||||||
}
|
}
|
||||||
return GL_TRUE;
|
return GL_TRUE;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user