Skip to content
Permalink
Browse files
Add FIXME for preshader output registers
  • Loading branch information
flibitijibibo committed Jan 27, 2020
1 parent 106c670 commit 27fd6919684ac613bf884ecb294470f097e7a9c7

File 1 of 1 in 27fd691

@@ -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;

0 comments on commit 27fd691

Please sign in to comment.