shader-compiler-bugs
shader-compiler-bugs copied to clipboard
Adding "discard" after "break" in WebGL (ANGLE) shader causes wrong image to be rendered
trafficstars
[Shaders, screenshots, error log, etc.] [ZIP]
Reported to Intel here: https://software.intel.com/en-us/forums/developing-games-and-graphics-on-intel/topic/703691
WebGL links for easy reproduction:
The variant has a "discard" statement after a "break" statement. Because the "discard" statement is unreachable code, this should have no effect on computation.
Recipient:

Variant:

I get this issue with Edge, which doesn't use ANGLE.