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

Re: [Public WebGL] WEBGL_lose_context

Unfortunately I have been unable to find the deleteContext function in the canvas API.  Some implementations keep webGL contexts around even after all references are set to null.  The WEBGL_lose_context extension seems to be the only way to declare you are finished with a context and free the context resource itself in a deterministic manor.
Ryan Patterson

On Fri, Nov 4, 2016 at 1:45 PM, Kenneth Russell <kbr@google.com> wrote:
This deliberately isn't specified. If you're looking for a way to free your application's resources, you should use the various delete* APIs.


On Fri, Nov 4, 2016 at 10:28 AM, <omarhuseynov97@gmail.com> wrote:

It says the extension “WEBGL_lose_context” simulates webgl context loss. Does it mean the browser actually frees the resources on the GPU allocated by the webgl context or just pretends that it did?


-         Omar