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

Re: [Public WebGL] Shared resources between contexts



On Fri, Jan 6, 2012 at 8:57 AM, Glenn Maynard <glenn@zewt.org> wrote:
> ctx1 = canvas1.getContext("webgl");
> if(ctx1.getExtension("WEBGL_shared_contexts") == null)
>    throw "Shared contexts are not supported";
> ctx2 = canvas2.getContext("webgl", { sharedContext: ctx1 });

Although I would prefer it if all contexts were simply shared by
default in order to have as little friction between engines /
libraries as possible, Glenn's proposal could be satisfactory for me.

-----------------------------------------------------------
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
-----------------------------------------------------------