瀏覽代碼

softpipe: implement flatshade_first for line setup

tags/mesa_7_6_rc1
Brian Paul 16 年之前
父節點
當前提交
6f26f8c750
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4
    1
      src/gallium/drivers/softpipe/sp_setup.c

+ 4
- 1
src/gallium/drivers/softpipe/sp_setup.c 查看文件

@@ -1051,7 +1051,10 @@ setup_line_coefficients(struct setup_context *setup,
float area;

/* use setup->vmin, vmax to point to vertices */
setup->vprovoke = v1;
if (softpipe->rasterizer->flatshade_first)
setup->vprovoke = v0;
else
setup->vprovoke = v1;
setup->vmin = v0;
setup->vmax = v1;


Loading…
取消
儲存