浏览代码

mesa: init tmpNode to zeros

tags/mesa_20090313
Brian Paul 17 年前
父节点
当前提交
a9aef5fccd
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1
    0
      src/mesa/shader/slang/slang_emit.c

+ 1
- 0
src/mesa/shader/slang/slang_emit.c 查看文件

@@ -727,6 +727,7 @@ emit_clamp(slang_emit_info *emitInfo, slang_ir_node *n)
* dest for this clamp() is an output reg, we can't use that reg for
* the intermediate result. Use a temp register instead.
*/
_mesa_bzero(&tmpNode, sizeof(tmpNode));
alloc_temp_storage(emitInfo, &tmpNode, n->Store->Size);

/* tmp = max(ch[0], ch[1]) */

正在加载...
取消
保存