summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/genmipmap.c
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2016-05-04 14:01:29 -0600
committerBrian Paul <brianp@vmware.com>2016-05-04 14:49:39 -0600
commit54d203a319cbe33461b3c1872722cea10adc337a (patch)
tree1df3deed1064ed04d537c8a65d206e831764d707 /src/mesa/main/genmipmap.c
parenta62f031bc394e20a0f33dafe3af60a294ad7f09e (diff)
downloadexternal_mesa3d-54d203a319cbe33461b3c1872722cea10adc337a.zip
external_mesa3d-54d203a319cbe33461b3c1872722cea10adc337a.tar.gz
external_mesa3d-54d203a319cbe33461b3c1872722cea10adc337a.tar.bz2
mesa: include texture format in glGenerateMipmap error message
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
Diffstat (limited to 'src/mesa/main/genmipmap.c')
-rw-r--r--src/mesa/main/genmipmap.c3
1 files changed, 2 insertions, 1 deletions
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;
}