diff options
| author | ladevieq <ladevie.quentin@gmail.com> | 2021-01-20 22:08:03 +0100 |
|---|---|---|
| committer | ladevieq <ladevie.quentin@gmail.com> | 2021-01-20 22:08:03 +0100 |
| commit | 2b1f81ba329b17a18cdd75604625076ee614f5ef (patch) | |
| tree | eb5501d6b6261e6e7745595a288b3a19fcb53aba /src/main.cpp | |
| parent | 293ba47eeb804e9cb0f392c0411fcce56c37bfc9 (diff) | |
Update fov on window resize
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index b449c4c..0de69f7 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -67,6 +67,7 @@ int main() { } else { canRender = true; renderer.recreate_swapchain(); + renderer.mapped_data->cam.set_aspect_ratio((float)event.width / (float)event.height); } break; } |
