From 256d5ca80af0b742d4b2bf156180a22b1976fb80 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Sun, 22 Mar 2020 00:47:23 -0400 Subject: [PATCH] mesa: don't set unnecessary program flags in _mesa_update_state _NEW_PROGRAM is already set. _NEW_FRAG_CLAMP is not used by the fixed-func fragment shader. Part-of: --- src/mesa/main/state.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mesa/main/state.c b/src/mesa/main/state.c index 7d02f1aa9fd..88feb16b6ea 100644 --- a/src/mesa/main/state.c +++ b/src/mesa/main/state.c @@ -403,8 +403,7 @@ _mesa_update_state_locked( struct gl_context *ctx ) if (ctx->FragmentProgram._MaintainTexEnvProgram) { prog_flags |= (_NEW_BUFFERS | _NEW_TEXTURE_OBJECT | _NEW_FOG | _NEW_VARYING_VP_INPUTS | _NEW_LIGHT | _NEW_POINT | - _NEW_RENDERMODE | _NEW_PROGRAM | _NEW_FRAG_CLAMP | - _NEW_COLOR | _NEW_TEXTURE_STATE); + _NEW_RENDERMODE | _NEW_COLOR | _NEW_TEXTURE_STATE); } if (ctx->VertexProgram._MaintainTnlProgram) { prog_flags |= (_NEW_VARYING_VP_INPUTS | _NEW_TEXTURE_OBJECT | -- 2.30.2