Reviewed-by: Charmaine Lee <charmai...@vmware.com> ________________________________________ From: Brian Paul <bri...@vmware.com> Sent: Wednesday, May 4, 2016 1:03 PM To: mesa-dev@lists.freedesktop.org Cc: Charmaine Lee; Sinclair Yeh Subject: [PATCH] mesa: include texture format in glGenerateMipmap error message
--- src/mesa/main/genmipmap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mesa/main/genmipmap.c b/src/mesa/main/genmipmap.c index 1a6ae9a..d917220 100644 --- a/src/mesa/main/genmipmap.c +++ b/src/mesa/main/genmipmap.c @@ -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; } -- 1.9.1 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev