e45810f585
If `gl.drawingBufferWidth` returns `0`, then a `clamp` in `WebGlRenderBackend::set_viewport_dimensions` hits an assertion that `1 <= self.gl.drawing_buffer_width()` is `false`. I was able to reproduce this on Chrome by creating many dummy WebGL contexts until Ruffle's one is lost, and then resize the Ruffle player, but this may happen in other cases as well. Fix this by allowing `renderbuffer_width` and `renderbuffer_height` to be `0`. From basic testing, this seems harmless. |
||
---|---|---|
.. | ||
canvas | ||
common_tess | ||
webgl | ||
wgpu |