From: Brian Paul Date: Wed, 6 May 2009 15:01:47 +0000 (-0600) Subject: mesa: limit number of error raised by invalid GL_TEXTURE_MAX_ANISOTROPY_EXT X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=74bec42b45910e2ff6bf1a8cc0eeb2bc5c705767;p=mesa.git mesa: limit number of error raised by invalid GL_TEXTURE_MAX_ANISOTROPY_EXT --- diff --git a/src/mesa/main/texparam.c b/src/mesa/main/texparam.c index e60ab6aa123..2195a334d3e 100644 --- a/src/mesa/main/texparam.c +++ b/src/mesa/main/texparam.c @@ -469,8 +469,10 @@ set_tex_parameterf(GLcontext *ctx, return GL_TRUE; } else { - _mesa_error(ctx, GL_INVALID_ENUM, - "glTexParameter(pname=GL_TEXTURE_MAX_ANISOTROPY_EXT)"); + static GLuint count = 0; + if (count++ < 10) + _mesa_error(ctx, GL_INVALID_ENUM, + "glTexParameter(pname=GL_TEXTURE_MAX_ANISOTROPY_EXT)"); } return GL_FALSE;