mesa: include texture format in glGenerateMipmap error message
authorBrian Paul <brianp@vmware.com>
Wed, 4 May 2016 20:01:29 +0000 (14:01 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 4 May 2016 20:49:39 +0000 (14:49 -0600)
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/mesa/main/genmipmap.c

index 1a6ae9a5f3c26892c9b1c6105a6d68f29d0cc7d5..d917220f7e8da2a1ddf137f9006a0e9df2b98bdc 100644 (file)
@@ -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;
    }