summaryrefslogblamecommitdiff
path: root/source/dw/app/end.rs
blob: 1ada74b3d9337211f8faf0ecfc82b44063cb8288 (plain) (tree)


















                                                     
// 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".
	}
}