From 99da2d30eb08e50edf4b0067518af3acdf2dabc0 Mon Sep 17 00:00:00 2001 From: Jerome Glisse Date: Tue, 24 Jan 2006 23:04:51 +0000 Subject: [PATCH] fix using a tmp without asking for one --- src/mesa/main/texenvprogram.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mesa/main/texenvprogram.c b/src/mesa/main/texenvprogram.c index 9153ab60f41..e5263916b8c 100644 --- 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; -- 2.30.2