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:
Agorgianitis Loukas
2021-08-06 17:54:09 +03:00
committed by GitHub
parent 9310f264f1
commit dd24b48b11

View File

@@ -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,