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:
Eric Anholt
2012-10-31 15:37:59 -07:00
parent 4fce0230fc
commit ccbfe3dde9
2 changed files with 2 additions and 2 deletions

View File

@@ -359,7 +359,7 @@ bind_vertex_array(struct gl_context *ctx, GLuint id, GLboolean genRequired)
newObj = lookup_arrayobj(ctx, id); newObj = lookup_arrayobj(ctx, id);
if (!newObj) { if (!newObj) {
if (genRequired) { if (genRequired) {
_mesa_error(ctx, GL_INVALID_OPERATION, "glBindVertexArray(id)"); _mesa_error(ctx, GL_INVALID_OPERATION, "glBindVertexArray(non-gen name)");
return; return;
} }

View File

@@ -1220,7 +1220,7 @@ _mesa_BindTexture( GLenum target, GLuint texName )
} }
else { else {
if (ctx->API == API_OPENGL_CORE) { if (ctx->API == API_OPENGL_CORE) {
_mesa_error(ctx, GL_INVALID_OPERATION, "glBindTexture"); _mesa_error(ctx, GL_INVALID_OPERATION, "glBindTexture(non-gen name)");
return; return;
} }