mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 05:08:08 +02:00
gallivm: fix typo/bug in lp_build_sgn()
We were never returning -1 as a result. This fixes some inverted/flipped faces with cube mapping.
This commit is contained in:
parent
1d6d51413e
commit
d25d3cc008
1 changed files with 1 additions and 1 deletions
|
|
@ -770,7 +770,7 @@ lp_build_sgn(struct lp_build_context *bld,
|
|||
|
||||
/* Handle zero */
|
||||
cond = lp_build_cmp(bld, PIPE_FUNC_EQUAL, a, bld->zero);
|
||||
res = lp_build_select(bld, cond, bld->zero, bld->one);
|
||||
res = lp_build_select(bld, cond, bld->zero, res);
|
||||
|
||||
return res;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue