[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Public WebGL] Extension proposal: WEBGL_lose_context

El día 7 de diciembre de 2010 13:59, Gregg Tavares (wrk)
<gman@google.com> escribió:
> This extension can be implemented entirely in JavaScript
> Just wrap the context and add the functions loseContext and restoreContext
> that stop the functions from doing anything and return LOST_CONTEXT.
> Adding an extension for this doesn't seem like it would add anything over
> the pure JavaScript solution does it?

I considered that approach, but an extension makes it possible to have
a conformance test that verifies that the WebGL context returns the
correct values during a lost context and correctly invalidates old
resources after the context is restored.  You can't test the WebGL
implementation itself with a pure Javascript implementation.

It's just a bonus that app developers could also use this extension
for their own testing without having to write their own (hopefully
correct) version.


You are currently subscribed to public_webgl@khronos.org.
To unsubscribe, send an email to majordomo@khronos.org with
the following command in the body of your email: