소스 검색

i965: don't swizzle fogcoord if FogOption is FOG_NONE.

fix #10788 issue on 965.
tags/mesa_7_1_rc1
Xiang, Haihao 17 년 전
부모
커밋
83068115e2
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5
    0
      src/mesa/drivers/dri/i965/brw_vs_tnl.c

+ 5
- 0
src/mesa/drivers/dri/i965/brw_vs_tnl.c 파일 보기

@@ -1172,6 +1172,11 @@ static void build_fog( struct tnl_program *p )
}
else {
input = swizzle1(register_input(p, VERT_ATTRIB_FOG), X);
if (p->state->fog_option &&
p->state->tnl_do_vertex_fog)
input = swizzle1(register_input(p, VERT_ATTRIB_FOG), X);
else
input = register_input(p, VERT_ATTRIB_FOG);
}

if (p->state->fog_option &&

Loading…
취소
저장