mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-31 20:40:09 +01:00
fix using a tmp without asking for one
This commit is contained in:
parent
8b1dc68662
commit
99da2d30eb
1 changed files with 1 additions and 0 deletions
|
|
@ -757,6 +757,7 @@ static struct ureg emit_combine( struct texenv_fragment_program *p,
|
|||
* result = tmp - .5
|
||||
*/
|
||||
half = get_half(p);
|
||||
tmp = get_temp( p );
|
||||
emit_arith( p, OPCODE_ADD, tmp, mask, 0, src[0], src[1], undef );
|
||||
emit_arith( p, OPCODE_SUB, dest, mask, saturate, tmp, half, undef );
|
||||
return dest;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue