1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-02 06:40:06 -04:00

No need to store an Arc<glow::Context>

This commit is contained in:
Emil Ernerfeldt
2023-11-13 19:45:06 +01:00
parent 3a07c0cfe1
commit 5136e3a9c6
2 changed files with 27 additions and 34 deletions

View File

@@ -305,6 +305,10 @@ impl Painter {
(width_in_pixels, height_in_pixels)
}
pub fn clear(&self, screen_size_in_pixels: [u32; 2], clear_color: [f32; 4]) {
clear(&self.gl, screen_size_in_pixels, clear_color);
}
/// You are expected to have cleared the color buffer before calling this.
pub fn paint_and_update_textures(
&mut self,