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

Re: [Public WebGL] using the same context with multiple canvases

On 11/10/12 1:48 PM, Chris Marrin wrote:
In the current model there is a one-to-many relationship between a
canvas and canvas contexts.  In particular, it's possible to grab both
a 2d context and a webgl context for the same canvas.  This happens to
change which backing store the canvas is using, though, so
conceptually the backing store is tied to the context, not the canvas...

I thought we made such things illegal.

What we did is that a call to getContext with a different first argument will unhook the canvas from the old context _and_ from its backing store, which is the point. The old context still exists, of course (but drawing to it may throw).


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