diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2008-05-19 16:04:02 -0600 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2008-05-19 16:04:46 -0600 |
commit | 8493f0849f6fa6ef87388c3a7e179a329447a763 (patch) | |
tree | 59bfbe332c97c4c4e262c3b948604357f821ab2b /src/mesa/shader | |
parent | 21e614eabc5e6a502504f307f3710b4dd0417923 (diff) |
fix tempReg test in _mesa_combine_programs()
Diffstat (limited to 'src/mesa/shader')
-rw-r--r-- | src/mesa/shader/program.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/shader/program.c b/src/mesa/shader/program.c index e06ab5aa23..a0817a91ec 100644 --- a/src/mesa/shader/program.c +++ b/src/mesa/shader/program.c @@ -602,7 +602,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; |