Browse Source

glsl: Remove redundant writes to prog->LinkStatus

The linker_error() function sets prog->LinkStatus to false.  There's
no reason for the caller of linker_error() to also do so.

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
tags/mesa-10.1-devel
Paul Berry 12 years ago
parent
commit
1299694ed5
2 changed files with 0 additions and 2 deletions
  1. 0
    1
      src/glsl/ir_function_detect_recursion.cpp
  2. 0
    1
      src/mesa/program/ir_to_mesa.cpp

+ 0
- 1
src/glsl/ir_function_detect_recursion.cpp View File



linker_error(prog, "function `%s' has static recursion.\n", proto); linker_error(prog, "function `%s' has static recursion.\n", proto);
ralloc_free(proto); ralloc_free(proto);
prog->LinkStatus = false;
} }





+ 0
- 1
src/mesa/program/ir_to_mesa.cpp View File

for (i = 0; i < prog->NumShaders; i++) { for (i = 0; i < prog->NumShaders; i++) {
if (!prog->Shaders[i]->CompileStatus) { if (!prog->Shaders[i]->CompileStatus) {
linker_error(prog, "linking with uncompiled shader"); linker_error(prog, "linking with uncompiled shader");
prog->LinkStatus = GL_FALSE;
} }
} }



Loading…
Cancel
Save