Imagination PowerVR SDK Blog

[Bug] [GLSL] [iPhone SE] Unreachable return statements in shader renders garbage


#1

The fragment shader files, screenshots, reproduction steps and platform info are available here:
https://github.com/mc-imperial/shader-compiler-bugs/issues/37

Adding two unreachable return statements in a GLSL fragment shader causes garbage to be rendered.

The bug can be triggered from Safari via WebGL.