From 581111c4d67c65305dcae83789ac504deeec9da2 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 5 Nov 2015 19:03:39 -0700 Subject: [PATCH] mesa: report enum name in glClientActiveTexture() error string As we do for glActiveTexture(). Trivial. --- src/mesa/main/texstate.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mesa/main/texstate.c b/src/mesa/main/texstate.c index cb147fac476..9d88554d945 100644 --- a/src/mesa/main/texstate.c +++ b/src/mesa/main/texstate.c @@ -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; } -- 2.30.2