diff options
author | Brian Paul <[email protected]> | 2016-05-23 14:56:38 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2016-05-24 10:26:26 -0600 |
commit | ce1cc70e27f19a072fac7bb21b8a77f531c42f70 (patch) | |
tree | 477744a88f5bfb473ed32aef90ae4a2c3e962afb /src/mesa/main/bufferobj.c | |
parent | 55c19527a6c28e6a7d8984f6cb6d9ce9d553a5c3 (diff) |
mesa: use enum name in bind_buffer_object() error message
Reviewed-by: Anuj Phogat <[email protected]>
Diffstat (limited to 'src/mesa/main/bufferobj.c')
-rw-r--r-- | src/mesa/main/bufferobj.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |