diff options
author | Brian Paul <brianp@vmware.com> | 2009-05-06 09:01:47 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2009-05-07 10:12:32 -0600 |
commit | 74bec42b45910e2ff6bf1a8cc0eeb2bc5c705767 (patch) | |
tree | d0e70381b55edb6e7890e719591a922d79ddb9c1 | |
parent | ad32489987f3f65d37aee76083f466d674ada0c5 (diff) |
mesa: limit number of error raised by invalid GL_TEXTURE_MAX_ANISOTROPY_EXT
-rw-r--r-- | src/mesa/main/texparam.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mesa/main/texparam.c b/src/mesa/main/texparam.c index e60ab6aa12..2195a334d3 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; |