<br><br><div class="gmail_quote">On Fri, Apr 6, 2012 at 11:31 PM, Gregg Tavares (勤) <span dir="ltr"><<a href="mailto:gman@google.com">gman@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="gmail_quote"><div>I did document it in the WebGL wiki</div><div><a href="http://www.khronos.org/webgl/wiki/HandlingContextLost" target="_blank">http://www.khronos.org/webgl/wiki/HandlingContextLost</a></div>
<div><br></div><div>Also many of the samples at </div><div><a href="http://code.google.com/p/webglsamples/" target="_blank">http://code.google.com/p/webglsamples/</a></div><div><br></div><div>including</div><div><a href="http://webglsamples.googlecode.com/hg/aquarium/aquarium.html" target="_blank">http://webglsamples.googlecode.com/hg/aquarium/aquarium.html</a></div>

<div><a href="http://webglsamples.googlecode.com/hg/blob/blob.html" target="_blank">http://webglsamples.googlecode.com/hg/blob/blob.html</a></div><div><a href="http://webglsamples.googlecode.com/hg/dynamic-cubemap/dynamic-cubemap.html" target="_blank">http://webglsamples.googlecode.com/hg/dynamic-cubemap/dynamic-cubemap.html</a></div>

<div><a href="http://webglsamples.googlecode.com/hg/electricflower/electricflower.html" target="_blank">http://webglsamples.googlecode.com/hg/electricflower/electricflower.html</a></div><div><a href="http://webglsamples.googlecode.com/hg/field/field.html" target="_blank">http://webglsamples.googlecode.com/hg/field/field.html</a></div>

<div><a href="http://webglsamples.googlecode.com/hg/imagesphere/imagesphere.html" target="_blank">http://webglsamples.googlecode.com/hg/imagesphere/imagesphere.html</a></div><div><a href="http://webglsamples.googlecode.com/hg/spacerocks/spacerocks.html" target="_blank">http://webglsamples.googlecode.com/hg/spacerocks/spacerocks.html</a></div>
</div></blockquote><div>All of these implement what I'd term the "reset pattern". Basically: contextLost -> restart everything. That's one of the easier things to do and it works really great for things that do virtually nothing in terms of state and interactivity.</div>
<div><br></div><div>Notably, the one example where this would've been interesting to see: <a href="http://webglsamples.googlecode.com/hg/collectibles/index.html">http://webglsamples.googlecode.com/hg/collectibles/index.html</a> doesn't actually handle context-lost. It's commented out.</div>
<div> </div></div>