Mesa (master): mesa: limit number of error raised by invalid GL_TEXTURE_MAX_ANISOTROPY_EXT
Brian Paul
brianp at kemper.freedesktop.org
Thu May 7 16:17:00 UTC 2009
Module: Mesa
Branch: master
Commit: 74bec42b45910e2ff6bf1a8cc0eeb2bc5c705767
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=74bec42b45910e2ff6bf1a8cc0eeb2bc5c705767
Author: Brian Paul <brianp at vmware.com>
Date: Wed May 6 09:01:47 2009 -0600
mesa: limit number of error raised by invalid GL_TEXTURE_MAX_ANISOTROPY_EXT
---
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 e60ab6a..2195a33 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;
More information about the mesa-commit
mailing list