mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
Fix scissor test leak when presenting gles backend (#1772)
* Fix scissor test leak when presenting gles backend * Set color mask before presenting gles backend to avoid potential leak
This commit is contained in:
committed by
GitHub
parent
9310f264f1
commit
dd24b48b11
@@ -840,6 +840,9 @@ impl Surface {
|
||||
crate::SurfaceError::Lost
|
||||
})?;
|
||||
|
||||
gl.disable(glow::SCISSOR_TEST);
|
||||
gl.color_mask(true, true, true, true);
|
||||
|
||||
gl.bind_framebuffer(glow::DRAW_FRAMEBUFFER, None);
|
||||
gl.bind_framebuffer(glow::READ_FRAMEBUFFER, Some(sc.framebuffer));
|
||||
// Note the Y-flipping here. GL's presentation is not flipped,
|
||||
|
||||
Reference in New Issue
Block a user