Skip to content

Commit

Permalink
Add FIXME for preshader output registers
Browse files Browse the repository at this point in the history
  • Loading branch information
flibitijibibo committed Jan 27, 2020
1 parent 106c670 commit 27fd691
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions mojoshader_effects.c
Expand Up @@ -39,6 +39,17 @@ void MOJOSHADER_runPreshader(const MOJOSHADER_preshader *preshader,
MOJOSHADER_preshaderInstruction *inst = preshader->instructions;
int instit;

#if 0 // FIXME: Do we need to do this or is the compiler smart enough?
// Clear preshader output registers first!
for (instit = 0; instit < preshader->instruction_count; instit++, inst++)
{
const MOJOSHADER_preshaderOperand *operand = &inst->operands[inst->operand_count - 1];
if (operand->type == MOJOSHADER_PRESHADEROPERAND_OUTPUT)
memset(&outregs[operand->index], '\0', sizeof(float) * 4);
} // for
inst = preshader->instructions;
#endif

for (instit = 0; instit < preshader->instruction_count; instit++, inst++)
{
const MOJOSHADER_preshaderOperand *operand = inst->operands;
Expand Down

0 comments on commit 27fd691

Please sign in to comment.