diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -197,5 +197,8 @@ main([[maybe_unused]] int argc, [[maybe_unused]] char **argv) static void framebuffer_size_callback([[maybe_unused]] GLFWwindow *window, int w, int h) { - glViewport(0, 0, w, h); + if (w < h) + glViewport(0, 0, w, w); + else + glViewport(0, 0, h, h); } |