From: Brian Paul Date: Wed, 4 May 2016 20:01:29 +0000 (-0600) Subject: mesa: include texture format in glGenerateMipmap error message X-Git-Tag: upstream/17.1.0~10237 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=54d203a319cbe33461b3c1872722cea10adc337a;p=platform%2Fupstream%2Fmesa.git mesa: include texture format in glGenerateMipmap error message Reviewed-by: Charmaine Lee --- 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; }