mesa: use enum name in bind_buffer_object() error message
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
This commit is contained in:
parent
55c19527a6
commit
ce1cc70e27
|
@ -1020,7 +1020,8 @@ bind_buffer_object(struct gl_context *ctx, GLenum target, GLuint buffer)
|
||||||
|
|
||||||
bindTarget = get_buffer_target(ctx, target);
|
bindTarget = get_buffer_target(ctx, target);
|
||||||
if (!bindTarget) {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue