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

Re: [Public WebGL] Help with the WebGL Context Lost specification



(Another gigantic email...)

On Wed, Dec 14, 2011 at 11:54 AM, Benoit Jacob <bjacob@mozilla.com> wrote:
The current spec says (IIUC) that the first WebGL call, and only the first call, following a context loss, should generate an WEBGL_CONTEXT_LOST error.

All it says is:
GLenum getError() (OpenGL ES 2.0 §2.5, man page)
If the context's webgl context lost flag is set, returns CONTEXT_LOST_WEBGL the first time this method is called. Afterward, returns NO_ERROR until the context has been restored.
The ED puts it differently, but has the same effect.
 
So IIUC it requires the implementation to keep track of whether a WebGL call was already made since the context loss.

It only requires keeping track of whether getError has been called.  Calling most functions while the context is lost is a complete no-op: steps 1.2 of [1] returns without doing anything.

[1] https://cvs.khronos.org/svn/repos/registry/trunk/public/webgl/specs/latest/index-context-lost.html#5.14 @ r16355

--
Glenn Maynard