From 02457ee29eb798268f01cc660398eecf657a1956 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Mon, 11 Dec 2023 17:16:58 +0100 Subject: [PATCH] Revert "mesa: limit number of error raised by invalid GL_TEXTURE_MAX_ANISOTROPY_EXT" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 74bec42b45910e2ff6bf1a8cc0eeb2bc5c705767. This is not conformant behavior, and if we *really* want to do this, it should be guarded behind a DRIconf or something instead. Reviewed-by: Marek Olšák Part-of: --- src/mesa/main/texparam.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/mesa/main/texparam.c b/src/mesa/main/texparam.c index b0065bac4ee..98ae15a006a 100644 --- a/src/mesa/main/texparam.c +++ b/src/mesa/main/texparam.c @@ -852,11 +852,8 @@ set_tex_parameterf(struct gl_context *ctx, 0 : texObj->Sampler.Attrib.MaxAnisotropy; /* gallium sets 0 for 1 */ return GL_TRUE; } - else { - static GLuint count = 0; - if (count++ < 10) - goto invalid_pname; - } + else + goto invalid_pname; return GL_FALSE; case GL_TEXTURE_LOD_BIAS: