From bc7a541279f1f5f1d920fcfc9c55def58497d761 Mon Sep 17 00:00:00 2001 From: undef Date: Fri, 6 Jan 2023 20:30:05 +0100 Subject: [PATCH] Fix constrained rendering in windowed mode on macOS #620 --- src/modules/graphics/graphics.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/graphics/graphics.c b/src/modules/graphics/graphics.c index 92709b8b..12eb617e 100644 --- a/src/modules/graphics/graphics.c +++ b/src/modules/graphics/graphics.c @@ -649,7 +649,7 @@ bool lovrGraphicsInit(GraphicsConfig* config) { .srgb = true }; - os_window_get_size(&state.window->info.width, &state.window->info.height); + os_window_get_fbsize(&state.window->info.width, &state.window->info.height); state.depthFormat = config->stencil ? FORMAT_D32FS8 : FORMAT_D32F;