From ce1cc70e27f19a072fac7bb21b8a77f531c42f70 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Mon, 23 May 2016 14:56:38 -0600 Subject: mesa: use enum name in bind_buffer_object() error message Reviewed-by: Anuj Phogat --- src/mesa/main/bufferobj.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/mesa/main') diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c index 22073dd28b8..34d81aa5d68 100644 --- a/src/mesa/main/bufferobj.c +++ b/src/mesa/main/bufferobj.c @@ -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; } -- cgit v1.2.3