This solves some edge cases in presets that suppress NaN or infinities by multiplying by zero. It's not clear what the performance impact is with this change, and it may not be something we want to always enable. Because of that, I've added an option flag to
GLSLGenerator::Generate() to enable or disable the behavior. This may be something we don't want to end up merging if the performance impact is too high.
This solves some edge cases in presets that suppress NaN or infinities by multiplying by zero. It's not clear what the performance impact is with this change, and it may not be something we want to always enable. Because of that, I've added an option flag to
GLSLGenerator::Generate()
to enable or disable the behavior. This may be something we don't want to end up merging if the performance impact is too high.