mesa: more info in glActiveTexture error msg
authorBrian Paul <brianp@vmware.com>
Thu, 28 Jan 2010 00:00:15 +0000 (17:00 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 28 Jan 2010 00:04:30 +0000 (17:04 -0700)
src/mesa/main/texstate.c

index 25333d8994a4500c33f705437103d67f75c5ea8b..2b26f651a54ce15fdb18f5af3b15d3b059b36021 100644 (file)
@@ -291,7 +291,8 @@ _mesa_ActiveTextureARB(GLenum texture)
                   _mesa_lookup_enum_by_nr(texture));
 
    if (texUnit >= ctx->Const.MaxTextureImageUnits) {
-      _mesa_error(ctx, GL_INVALID_ENUM, "glActiveTexture(texture)");
+      _mesa_error(ctx, GL_INVALID_ENUM, "glActiveTexture(texture=%s)",
+                  _mesa_lookup_enum_by_nr(texture));
       return;
    }