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

**URL:** <https://forums.imgtec.com/t/bug-glsl-iphone-se-unreachable-return-statements-in-shader-renders-garbage/2508>\
**Category:** PowerVR Insider\
**Created:** [December 2, 2016, 9:49am UTC](https://forums.imgtec.com/t/bug-glsl-iphone-se-unreachable-return-statements-in-shader-renders-garbage/2508 "2016-12-02T09:49:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![paulthomson](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.imgtec.com/paulthomson/32/238_2.png) [@paulthomson](https://forums.imgtec.com/u/paulthomson)\
**Post date:** [December 2, 2016, 9:49am UTC](https://forums.imgtec.com/t/bug-glsl-iphone-se-unreachable-return-statements-in-shader-renders-garbage/2508/1 "2016-12-02T09:49:55Z")

</div>

The fragment shader files, screenshots, reproduction steps and platform info are available here:  
[https://github.com/mc-imperial/shader-compiler-bugs/issues/37](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.
