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 authored and GitHub committed 2021-08-06 10:54:09 -04:00
1 parent 9310f264f1
commit dd24b48b11
1 file changed
+3
+3
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,