mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-14 13:20:28 +01:00
fix tempReg test in _mesa_combine_programs()
This commit is contained in:
parent
fbfe2a58de
commit
e469d78d33
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue