mesa: Use "non-gen name" more consistently as an error message in GL core.
authorEric Anholt <eric@anholt.net>
Wed, 31 Oct 2012 22:37:59 +0000 (15:37 -0700)
committerEric Anholt <eric@anholt.net>
Sun, 4 Nov 2012 20:28:46 +0000 (12:28 -0800)
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>
src/mesa/main/arrayobj.c
src/mesa/main/texobj.c

index 5959260c27f9473f2e6c6b8799941b05e07de39d..926c753dd389c5dc1840d2cbad35803533f5a67d 100644 (file)
@@ -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;
          }
 
index 224d8a825dc753ab17cf0379ede6f8ba9a443f89..8525ff9fd4160e9b7c5f533ca0c2688b916c49ba 100644 (file)
@@ -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;
          }