mesa: don't set unnecessary program flags in _mesa_update_state
authorMarek Olšák <marek.olsak@amd.com>
Sun, 22 Mar 2020 04:47:23 +0000 (00:47 -0400)
committerMarge Bot <eric+marge@anholt.net>
Thu, 30 Apr 2020 22:01:55 +0000 (22:01 +0000)
_NEW_PROGRAM is already set.
_NEW_FRAG_CLAMP is not used by the fixed-func fragment shader.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4314>

src/mesa/main/state.c

index 7d02f1aa9fd48419918154847af9966aa705ea98..88feb16b6ea50e8c7fbdfd384ee5d864f47ff01d 100644 (file)
@@ -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 |