mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
i965: don't swizzle fogcoord if FogOption is FOG_NONE.
fix #10788 issue on 965.
This commit is contained in:
parent
7eef52e975
commit
83068115e2
1 changed files with 5 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue