diff options
Diffstat (limited to 'engine/src/opengl/mod.rs')
-rw-r--r-- | engine/src/opengl/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/src/opengl/mod.rs b/engine/src/opengl/mod.rs index d58ca50..6898c49 100644 --- a/engine/src/opengl/mod.rs +++ b/engine/src/opengl/mod.rs @@ -1,6 +1,6 @@ use bitflags::bitflags; -use glfw::WindowSize; +use crate::data_types::dimens::Dimens; use crate::vector::Vec2; pub mod buffer; @@ -14,7 +14,7 @@ mod util; #[cfg(feature = "debug")] pub mod debug; -pub fn set_viewport(position: &Vec2<u32>, size: &WindowSize) +pub fn set_viewport(position: &Vec2<u32>, size: Dimens<u32>) { unsafe { #[allow(clippy::cast_possible_wrap)] |