afb9ecc4ab
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. |
||
---|---|---|
.. | ||
shaders | ||
src | ||
Cargo.toml |