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

Re: [Public WebGL] Losing GL context during rAF execution?



Context lost can happen any time.

On Wed, Dec 31, 2014 at 6:02 AM, Jukka Jylänki <jujjyl@gmail.com> wrote:
> Hi there,
>
> Is it possible to lose the WebGL context *during* the execution of a rAF
> handler (or for that matter, during some other JS code)? That is, if I have
> the following code:
>
> function rAF() {
>    if (gl.isContextLost()) {
>       // handle loss
>       return;
>    }
>    gl.xxx();
>    gl.yyy();
>    window.requestAnimationFrame(rAF);
> }
>
> is it allowed that the GL context gets lost during the GL calls in the
> middle?
>
> Thanks,
>    Jukka

-----------------------------------------------------------
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:
unsubscribe public_webgl
-----------------------------------------------------------