summaryrefslogtreecommitdiff
path: root/source/dw/app/end.rs
blob: 1ada74b3d9337211f8faf0ecfc82b44063cb8288 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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".
	}
}