mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
st/nine: Fix specular enable for alpha
Apparently specular enable doesn't affect the alpha channel. Fixes https://github.com/iXit/Mesa-3D/issues/253 Behaviour comfirmed looking in wine sources. Signed-off-by: Axel Davy <axel.davy@ens.fr>
This commit is contained in:
parent
85811d0e87
commit
e94ac230a2
1 changed files with 1 additions and 1 deletions
|
|
@ -1528,7 +1528,7 @@ nine_ff_build_ps(struct NineDevice9 *device, struct nine_ff_ps_key *key)
|
|||
}
|
||||
|
||||
if (key->specular)
|
||||
ureg_ADD(ureg, ps.rCur, ps.rCurSrc, ps.vC[1]);
|
||||
ureg_ADD(ureg, ureg_writemask(ps.rCur, TGSI_WRITEMASK_XYZ), ps.rCurSrc, ps.vC[1]);
|
||||
|
||||
/* Fog.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue