mesa: limit number of error raised by invalid GL_TEXTURE_MAX_ANISOTROPY_EXT
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user