Skip to content
Snippets Groups Projects
Commit e427345d authored by Lava Block's avatar Lava Block
Browse files

fix aspect ratio in camera on window show / app start

parent 3b8c3b87
No related branches found
No related tags found
No related merge requests found
......@@ -114,6 +114,9 @@ namespace lava {
if (!camera.create(device))
return false;
camera.aspect_ratio = window.get_aspect_ratio();
camera.update_projection();
if (!create_gui())
return false;
......
......@@ -86,6 +86,8 @@ namespace lava {
switch_mode_request_active = false;
handle_message();
get_framebuffer_size(framebuffer_width, framebuffer_height);
return true;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment