Revert "mesa: limit number of error raised by invalid GL_TEXTURE_MAX_ANISOTROPY_EXT"
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

This reverts commit 74bec42b45.

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 <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35099>
This commit is contained in:
Erik Faye-Lund 2023-12-11 17:16:58 +01:00 committed by Marge Bot
parent 48f0d738de
commit 02457ee29e

View file

@ -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: