浏览代码

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 年前
父节点
当前提交
1299694ed5
共有 2 个文件被更改,包括 0 次插入2 次删除
  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 查看文件

@@ -319,7 +319,6 @@ emit_errors_linked(const void *key, void *data, void *closure)

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



+ 0
- 1
src/mesa/program/ir_to_mesa.cpp 查看文件

@@ -3108,7 +3108,6 @@ _mesa_glsl_link_shader(struct gl_context *ctx, struct gl_shader_program *prog)
for (i = 0; i < prog->NumShaders; i++) {
if (!prog->Shaders[i]->CompileStatus) {
linker_error(prog, "linking with uncompiled shader");
prog->LinkStatus = GL_FALSE;
}
}


正在加载...
取消
保存