From 8b2caf8f86b4f793d07fbc6b7d0bd4aafd22162f Mon Sep 17 00:00:00 2001 From: aap Date: Thu, 18 Feb 2021 21:03:42 +0100 Subject: [PATCH] window size test --- src/gl/gl3device.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gl/gl3device.cpp b/src/gl/gl3device.cpp index 7d45362..b1036c0 100644 --- a/src/gl/gl3device.cpp +++ b/src/gl/gl3device.cpp @@ -1344,7 +1344,7 @@ beginUpdate(Camera *cam) #ifdef LIBRW_SDL2 SDL_GetWindowSize(glGlobals.window, &w, &h); #else - glfwGetWindowSize(glGlobals.window, &w, &h); + glfwGetFramebufferSize(glGlobals.window, &w, &h); #endif }else{ w = fb->width;