mc-imperial / shader-compiler-bugs

A collection of shader compiler bugs.
MIT License
49 stars 9 forks source link

Adding long-running empty loop causes browser to lose WebGL context #39

Closed afd closed 7 years ago

afd commented 7 years ago

[Shaders, screenshots, error log, reproduction steps, etc.] [ZIP]

Recipient:

recipient image

Variant:

variant image

The variant includes a long-running, but empty loop. This leads to nothing being rendered, presumably because the time taken to execute the loop causes the GPU watchdog to kick in and kill the shader. This causes the Chromebook screen to go blank, and for the Chrome Browser to lose the WebGL context: "CONTEXT_LOST_WEBGL" is reported.

afd commented 7 years ago

Marking this as false positive, because it's OK to lose the WebGL context when a shader tries to loop indefinitely.