 <p>In assumption that you're on a windows pc it sounds like you're experiencing a loop unrolling bug in <a href="https://code.google.com/p/angleproject/" rel="nofollow">ANGLE</a>.</p> <p>To verify this start your browser with <code>--use-gl=desktop</code>. This flag forces your browser to <em>not use</em> the ANGLE DirectX conversion layer. When your problem is indeed ANGLE based take a look at the compiled HLSL code using <a href="http://www.ianww.com/2013/01/14/debugging-angle-errors-in-webgl-on-windows/" rel="nofollow">getTranslatedShaderSource</a> and debug from there.</p> <p>Unfortunately if it is an angle based issue your only chance to get it running is either fiddling around until its converted correctly or file a bug on the angle project page.</p>