mesa: use enum name in bind_buffer_object() error message
authorBrian Paul <brianp@vmware.com>
Mon, 23 May 2016 20:56:38 +0000 (14:56 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 24 May 2016 16:26:26 +0000 (10:26 -0600)
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
src/mesa/main/bufferobj.c

index 22073dd28b81b6adfcc1266123aca29275a4c376..34d81aa5d689932bc263821adc4384b14ee5a9b6 100644 (file)
@@ -1020,7 +1020,8 @@ bind_buffer_object(struct gl_context *ctx, GLenum target, GLuint buffer)
 
    bindTarget = get_buffer_target(ctx, target);
    if (!bindTarget) {
-      _mesa_error(ctx, GL_INVALID_ENUM, "glBindBufferARB(target 0x%x)", target);
+      _mesa_error(ctx, GL_INVALID_ENUM, "glBindBufferARB(target %s)",
+                  _mesa_enum_to_string(target));
       return;
    }