1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-03 23:30:04 -04:00

Disable glow scissor test after painting (#905)

This commit is contained in:
Henrique Penteado Kujawski Périgo
2021-11-27 05:44:23 -05:00
committed by GitHub
parent 5fee6b7bc5
commit 6b5c4b9aec
2 changed files with 7 additions and 3 deletions

View File

@@ -265,7 +265,6 @@ impl Painter {
let height_in_points = height_in_pixels as f32 / pixels_per_point;
gl.viewport(0, 0, width_in_pixels as i32, height_in_pixels as i32);
gl.use_program(Some(self.program));
gl.uniform_2_f32(Some(&self.u_screen_size), width_in_points, height_in_points);
@@ -324,6 +323,9 @@ impl Painter {
if let Some(ref post_process) = self.post_process {
post_process.end(gl);
}
gl.disable(glow::SCISSOR_TEST);
assert_eq!(glow::NO_ERROR, gl.get_error(), "GL error occurred!");
}
}