Skip to content

Should mention being recommended mechanism to drop underlying graphics resources #42833

@upsuper

Description

@upsuper

MDN URL

https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_lose_context/loseContext

What specific section or headline is this issue about?

No response

What information was incorrect, unhelpful, or incomplete?

The document talks about it being a debugging tool to simulate losing the context, however it can also be used for freeing graphics resources.

The specification mentions for loseContext():

Implementations should destroy the underlying graphics context and all graphics resources when this method is called. This is the recommended mechanism for applications to programmatically halt their use of the WebGL API.

This should probably be incorporated into the page.

What did you expect to see?

Mentioning that this is the recommended mechanism to programmatically drop graphics resources and stop using WebGL API.

Do you have any supporting links, references, or citations?

No response

Do you have anything more you want to share?

No response

MDN metadata

Page report details

Metadata

Metadata

Assignees

No one assigned

    Labels

    Content:WebAPIWeb API docsneeds triageTriage needed by staff and/or partners. Automatically applied when an issue is opened.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions