A WebGL 2 context registered with the browser module. Closing it leaves the context usable.
Close it only after every session that uses it has detached or been destroyed. A registration that is never closed keeps its context alive.
Calls close(), for using. Hosts without Symbol.dispose leave it undefined.
close()
using
Symbol.dispose
The handle for a WebGlContextDescriptor of kind existing. Throws a MaplibreError with the invalid-state status after close.
WebGlContextDescriptor
existing
MaplibreError
Removes the registration. A descriptor that still names the handle fails to make a context current. A second call does nothing.
A WebGL 2 context registered with the browser module. Closing it leaves the context usable.
Close it only after every session that uses it has detached or been destroyed. A registration that is never closed keeps its context alive.