mesa: report enum name in glClientActiveTexture() error string
authorBrian Paul <brianp@vmware.com>
Fri, 6 Nov 2015 02:03:39 +0000 (19:03 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 6 Nov 2015 03:12:33 +0000 (20:12 -0700)
As we do for glActiveTexture().  Trivial.

src/mesa/main/texstate.c

index cb147fac476602d4a91d5e19ae24e76c278b27d6..9d88554d94580efaa046c187edf8628d2134c393 100644 (file)
@@ -330,7 +330,8 @@ _mesa_ClientActiveTexture(GLenum texture)
       return;
 
    if (texUnit >= ctx->Const.MaxTextureCoordUnits) {
-      _mesa_error(ctx, GL_INVALID_ENUM, "glClientActiveTexture(texture)");
+      _mesa_error(ctx, GL_INVALID_ENUM, "glClientActiveTexture(texture=%s)",
+                  _mesa_enum_to_string(texture));
       return;
    }