WebGL: Improve error message when a webglcontextlost
event occurs?
#3679
Labels
api: gles
Issues with GLES or WebGL
area: validation
Issues related to validation, diagnostics, and error handling
type: enhancement
New feature or request
Currently when
WebGL2RenderingContext
is lost, wgpu seems to panic withDeviceError::OutOfMemory
that displays a message sayingNot enough memory left
.It would be helpful if wgpu panicked with
DeviceError::Lost
or something more relevant to thewebglcontextlost
event if possible instead ofDeviceError::OutOfMemory
.How to repro
I am not 100% certain about a consistent way to reproduce this issue, but for me (on macOS), changing screen resolution produces that error consistently.
Thank you!
The text was updated successfully, but these errors were encountered: