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

Clean up glow painter destroy code

This commit is contained in:
Emil Ernerfeldt
2021-12-28 14:24:59 +01:00
parent beb2ea2ef6
commit 5b9a349c26
2 changed files with 15 additions and 12 deletions

View File

@@ -221,6 +221,7 @@ impl PostProcess {
gl.bind_texture(glow::TEXTURE_2D, None);
gl.use_program(None);
}
pub(crate) unsafe fn destroy(&self, gl: &glow::Context) {
gl.delete_buffer(self.pos_buffer);
gl.delete_buffer(self.index_buffer);