mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 20:10:17 +01:00
mesa: include texture format in glGenerateMipmap error message
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
This commit is contained in:
parent
a62f031bc3
commit
54d203a319
1 changed files with 2 additions and 1 deletions
|
|
@ -139,7 +139,8 @@ _mesa_generate_texture_mipmap(struct gl_context *ctx,
|
|||
srcImage->InternalFormat)) {
|
||||
_mesa_unlock_texture(ctx, texObj);
|
||||
_mesa_error(ctx, GL_INVALID_OPERATION,
|
||||
"glGenerate%sMipmap(invalid internal format)", suffix);
|
||||
"glGenerate%sMipmap(invalid internal format %s)", suffix,
|
||||
_mesa_enum_to_string(srcImage->InternalFormat));
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue