From: Brian Paul Date: Thu, 28 Jan 2010 00:00:15 +0000 (-0700) Subject: mesa: more info in glActiveTexture error msg X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4e5364d6fcd63b6f927ac4fb76effec0007d6797;p=mesa.git mesa: more info in glActiveTexture error msg --- diff --git a/src/mesa/main/texstate.c b/src/mesa/main/texstate.c index 25333d8994a..2b26f651a54 100644 --- a/src/mesa/main/texstate.c +++ b/src/mesa/main/texstate.c @@ -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; }