James-Jones / HLSLCrossCompiler

Other
468 stars 81 forks source link

UDIV glsl output can be invalid #42

Open TiemoJung opened 8 years ago

TiemoJung commented 8 years ago

Hi,

under certain circumstances the glsl output for the UDIV operation is wrong: if the first output register is the same as one of the operands, the divide will overwrite the operant and the following modulo uses wrong values as input.