summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2008-05-19 16:03:43 -0600
committerBrian Paul <brian.paul@tungstengraphics.com>2008-05-19 16:03:43 -0600
commite469d78d33feff45f16235871ca1a3d483cdc950 (patch)
tree3e2440d111f065bafc16a4fcf87083c4a6d60d49 /src/mesa
parentfbfe2a58de8a9ca31164b4c6f26191b851fe939d (diff)
fix tempReg test in _mesa_combine_programs()
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/shader/program.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/shader/program.c b/src/mesa/shader/program.c
index 044d6449ac..7048770cf7 100644
--- a/src/mesa/shader/program.c
+++ b/src/mesa/shader/program.c
@@ -641,7 +641,7 @@ _mesa_combine_programs(GLcontext *ctx,
if ((progA->OutputsWritten & (1 << FRAG_RESULT_COLR)) &&
(progB->InputsRead & (1 << FRAG_ATTRIB_COL0))) {
GLint tempReg = _mesa_find_free_register(newProg, PROGRAM_TEMPORARY);
- if (!tempReg) {
+ if (tempReg < 0) {
_mesa_problem(ctx, "No free temp regs found in "
"_mesa_combine_programs(), using 31");
tempReg = 31;