diff options
Diffstat (limited to 'source/dw/app/end.rs')
-rw-r--r-- | source/dw/app/end.rs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/source/dw/app/end.rs b/source/dw/app/end.rs new file mode 100644 index 0000000..1ada74b --- /dev/null +++ b/source/dw/app/end.rs @@ -0,0 +1,19 @@ +// Copyright 2023 Gabriel Jensen. + +use crate::dw::app::{App, Gfx}; + +extern crate gl; + +use gl::{DeleteProgram}; + +impl App { + pub fn end(&mut self,gfx: &mut Gfx) { + eprintln!("ending"); + + unsafe { + DeleteProgram(gfx.shdprg); + } + + // GLFW is automatically "destroyed". + } +} |