projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21e614e
)
fix tempReg test in _mesa_combine_programs()
author
Brian Paul
<brian.paul@tungstengraphics.com>
Mon, 19 May 2008 22:04:02 +0000
(16:04 -0600)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Mon, 19 May 2008 22:04:46 +0000
(16:04 -0600)
src/mesa/shader/program.c
patch
|
blob
|
history
diff --git
a/src/mesa/shader/program.c
b/src/mesa/shader/program.c
index e06ab5aa237c9efc5e44c23fe8c0551c7b5ee21c..a0817a91ec0ccfaed95f6cb7a2deaec4fcd2d553 100644
(file)
--- 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;