summaryrefslogtreecommitdiff
path: root/source/dw/app/inigfx.rs
diff options
context:
space:
mode:
Diffstat (limited to 'source/dw/app/inigfx.rs')
-rw-r--r--source/dw/app/inigfx.rs12
1 files changed, 7 insertions, 5 deletions
diff --git a/source/dw/app/inigfx.rs b/source/dw/app/inigfx.rs
index b037757..9760ded 100644
--- a/source/dw/app/inigfx.rs
+++ b/source/dw/app/inigfx.rs
@@ -1,7 +1,6 @@
// Copyright 2023 Gabriel Jensen.
-use crate::dw::app::App;
-use crate::dw::app::Gfx;
+use crate::dw::app::{App,Gfx};
extern crate gl;
extern crate glfw;
@@ -27,10 +26,13 @@ impl App {
eprintln!("initialising opengl");
gl::load_with(|nam| glfw.get_proc_address_raw(nam) as *const c_void);
+ let shdprg = self.getshdprg();
+
return Gfx {
- glfw: glfw,
- win: win,
- evt: evt,
+ evt: evt,
+ glfw: glfw,
+ shdprg:shdprg,
+ win: win,
};
}
}