ruffle/render/webgl
relrelb afb9ecc4ab webgl: Avoid zeroing `renderbuffer_{width,height}`
This basically reverts #5737 and #6458 for the WebGL backend, which
regressed a bug where setting the style `display: none;` to a Ruffle
player logged many WebGL warnings to the console. This happened
because `renderbuffer_width` and `renderbuffer_height` were set to zero,
leading to problems when trying to pass them to WebGL APIs.

Avoid such situation by ensuring that `renderbuffer_width` and
`renderbuffer_height` are at least `1`, exactly as done before.
Also add a comment that explains why `.clamp()` isn't used.

Fixes #1264.
2022-07-24 23:37:54 +03:00
..
shaders webgl: Use clamp(x, 0.0, 1.0) instead of saturate(x) 2022-05-13 09:31:21 -07:00
src webgl: Avoid zeroing `renderbuffer_{width,height}` 2022-07-24 23:37:54 +03:00
Cargo.toml build(deps): bump bytemuck from 1.9.1 to 1.10.0 2022-07-04 23:55:22 +03:00