mesa: Use "non-gen name" more consistently as an error message in GL core.
I used this to help verify that my test was actually testing the paths I wanted to. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
@@ -359,7 +359,7 @@ bind_vertex_array(struct gl_context *ctx, GLuint id, GLboolean genRequired)
|
||||
newObj = lookup_arrayobj(ctx, id);
|
||||
if (!newObj) {
|
||||
if (genRequired) {
|
||||
_mesa_error(ctx, GL_INVALID_OPERATION, "glBindVertexArray(id)");
|
||||
_mesa_error(ctx, GL_INVALID_OPERATION, "glBindVertexArray(non-gen name)");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@@ -1220,7 +1220,7 @@ _mesa_BindTexture( GLenum target, GLuint texName )
|
||||
}
|
||||
else {
|
||||
if (ctx->API == API_OPENGL_CORE) {
|
||||
_mesa_error(ctx, GL_INVALID_OPERATION, "glBindTexture");
|
||||
_mesa_error(ctx, GL_INVALID_OPERATION, "glBindTexture(non-gen name)");
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user