empaempa / GLOW

GLOW is a WebGL wrapper, which focuses on easy creation and use of shaders.
http://i-am-glow.com
MIT License
244 stars 28 forks source link

Updated to handle Context Lost events #18

Closed subblue closed 12 years ago

subblue commented 12 years ago

As described here: http://www.khronos.org/webgl/wiki/HandlingContextLost

If you pass debug: true when creating a GLOW.Context and also have the WebGLDebugUtils loaded (https://www.khronos.org/registry/webgl/sdk/debug/webgl-debug.js) then you can simulate a lost context event with: canvas.loseContext()

empaempa commented 12 years ago

Fantastic!