mesa: remove redudant assignment
authorTapani Pälli <tapani.palli@intel.com>
Thu, 9 Apr 2020 07:41:45 +0000 (10:41 +0300)
committerTapani Pälli <tapani.palli@intel.com>
Sun, 12 Apr 2020 13:48:45 +0000 (16:48 +0300)
CID: 1461397
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Andres Gomez <agomez@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4500>

src/mesa/main/shaderapi.c

index a812b6c06e989bce435df0b9f5f02f02ab6a71da..0aa05475247202e78975f461796f302a3644e66c 100644 (file)
@@ -1265,7 +1265,7 @@ update_programs_in_pipeline(GLuint key, void *data, void *userData)
    for (unsigned stage = 0; stage < MESA_SHADER_STAGES; stage++) {
       if (obj->CurrentProgram[stage] &&
           obj->CurrentProgram[stage]->Id == params->shProg->Name) {
-         struct gl_program *prog = prog = params->shProg->_LinkedShaders[stage]->Program;
+         struct gl_program *prog = params->shProg->_LinkedShaders[stage]->Program;
          _mesa_use_program(params->ctx, stage, params->shProg, prog, obj);
       }
    }