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

Clean up egui_glow painter code

This commit is contained in:
Emil Ernerfeldt
2021-10-20 12:29:35 +02:00
parent da74687be5
commit 8accfd9a8f
2 changed files with 32 additions and 51 deletions

View File

@@ -188,13 +188,7 @@ impl EguiGlow {
);
}
#[cfg(debug_assertions)]
pub fn destroy(&mut self, gl: &glow::Context) {
self.painter.destroy(gl)
}
#[cfg(not(debug_assertions))]
pub fn destroy(&self, gl: &glow::Context) {
self.painter.destroy(gl)
}
}