From: Brian Paul Date: Mon, 23 May 2016 20:56:38 +0000 (-0600) Subject: mesa: use enum name in bind_buffer_object() error message X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ce1cc70e27f19a072fac7bb21b8a77f531c42f70;p=mesa.git mesa: use enum name in bind_buffer_object() error message Reviewed-by: Anuj Phogat --- 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; }