fix DrawRangeElements error msg
authorBrian <brian.paul@tungstengraphics.com>
Sun, 23 Sep 2007 19:56:46 +0000 (13:56 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Sun, 23 Sep 2007 19:58:18 +0000 (13:58 -0600)
src/mesa/main/api_validate.c

index 3e4fe46b1dff11640317050f0aefe7dab1402fe8..e2eebccd4778f264299d6c9208752ed7dd28b391 100644 (file)
@@ -214,7 +214,7 @@ _mesa_validate_DrawRangeElements(GLcontext *ctx, GLenum mode,
 
       /* make sure count doesn't go outside buffer bounds */
       if (indexBytes > ctx->Array.ElementArrayBufferObj->Size) {
-         _mesa_warning(ctx, "glDrawElements index out of buffer bounds");
+         _mesa_warning(ctx, "glDrawRangeElements index out of buffer bounds");
          return GL_FALSE;
       }
    }