Commit 54d203a3 authored by Brian Paul's avatar Brian Paul

mesa: include texture format in glGenerateMipmap error message

Reviewed-by: Charmaine Lee's avatarCharmaine Lee <charmainel@vmware.com>
parent a62f031b
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment