瀏覽代碼

r500: add missing brackets around depth testing

tags/mesa_7_1_rc2
Dave Airlie 17 年之前
父節點
當前提交
7ead1c5d06
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. 2
    1
      src/mesa/drivers/dri/r300/r500_fragprog.c

+ 2
- 1
src/mesa/drivers/dri/r300/r500_fragprog.c 查看文件

@@ -364,10 +364,11 @@ static void emit_alu(struct r500_fragment_program *fp, int counter, struct prog_
if (fpi->DstReg.Index == FRAG_RESULT_COLR)
fp->inst[counter].inst0 |= (fpi->DstReg.WriteMask << 15);

if (fpi->DstReg.Index == FRAG_RESULT_DEPR)
if (fpi->DstReg.Index == FRAG_RESULT_DEPR) {
fp->inst[counter].inst4 |= R500_ALPHA_W_OMASK;
/* Notify the state emission! */
fp->writes_depth = GL_TRUE;
}
} else {
fp->inst[counter].inst0 = R500_INST_TYPE_ALU
/* pixel_mask */

Loading…
取消
儲存