summaryrefslogtreecommitdiff
path: root/engine/src/renderer
diff options
context:
space:
mode:
Diffstat (limited to 'engine/src/renderer')
-rw-r--r--engine/src/renderer/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/engine/src/renderer/mod.rs b/engine/src/renderer/mod.rs
index f9082fc..e32f308 100644
--- a/engine/src/renderer/mod.rs
+++ b/engine/src/renderer/mod.rs
@@ -81,10 +81,10 @@ fn initialize(window: Single<Window>)
let window_size = window.size().expect("Failed to get window size");
- set_viewport(&Vec2 { x: 0, y: 0 }, window_size);
+ set_viewport(Vec2 { x: 0, y: 0 }, window_size);
window.set_framebuffer_size_callback(|new_window_size| {
- set_viewport(&Vec2::ZERO, new_window_size);
+ set_viewport(Vec2::ZERO, new_window_size);
});
enable(Capability::DepthTest);
@@ -177,7 +177,7 @@ struct GlObjects
textures: HashMap<TextureId, GlTexture>,
}
-fn set_viewport(position: &Vec2<u32>, size: Dimens<u32>)
+fn set_viewport(position: Vec2<u32>, size: Dimens<u32>)
{
crate::opengl::set_viewport(position, size);
}