ruffle/render
relrelb e45810f585 webgl: Avoid clamp assertion
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.
2022-03-16 13:53:34 +02:00
..
canvas chore: Stop using traits available in prelude 2022-03-14 01:16:00 +02:00
common_tess build: Bump Rust edition to 2021 2021-10-21 10:24:05 -07:00
webgl webgl: Avoid clamp assertion 2022-03-16 13:53:34 +02:00
wgpu chore: Stop using traits available in prelude 2022-03-14 01:16:00 +02:00