This repository has been archived by the owner on Jan 29, 2025. It is now read-only.
[glsl-in] True and false branch of conditional expression operands are always evaluated #1854
Labels
area: front-end
Input formats for conversion
kind: bug
Something isn't working
lang: GLSL
OpenGL Shading Language
The expression:
compiles to:
which evaluates both the true and false branches before evaluation the condition. This is wrong according to the GLSL spec:
In the example above, if the condition is false, then the true branch is an out-of-bound access, which cannot be evaluated.
The text was updated successfully, but these errors were encountered: