gfx-rs / gfx

[maintenance mode] A low-overhead Vulkan-like GPU API for Rust.
http://gfx-rs.github.io/
Apache License 2.0
5.35k stars 548 forks source link

[GL] Workaround WebGL's Lack of Per-Target Color Masks #3596

Closed cwfitzgerald closed 3 years ago

cwfitzgerald commented 3 years ago

Fixes #3593

This works around the issue. To avoid redundant state changes in the future, as mentioned in the comment, we should coalesce on the command-generator side to a single global call.

bors[bot] commented 3 years ago

Build succeeded: