projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b1dc68
)
fix using a tmp without asking for one
author
Jerome Glisse
<glisse@freedesktop.org>
Tue, 24 Jan 2006 23:04:51 +0000
(23:04 +0000)
committer
Jerome Glisse
<glisse@freedesktop.org>
Tue, 24 Jan 2006 23:04:51 +0000
(23:04 +0000)
src/mesa/main/texenvprogram.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/texenvprogram.c
b/src/mesa/main/texenvprogram.c
index 9153ab60f4110becd2d5aa3e7efbe47eba1b9ae6..e5263916b8c3bb5e1d09c858ad35ad3e64c5dc3c 100644
(file)
--- a/
src/mesa/main/texenvprogram.c
+++ b/
src/mesa/main/texenvprogram.c
@@
-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;