From 315c9455d57fdacda48e0feb8ef6312bcdb987b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camilla=20L=C3=B6wy?= Date: Tue, 28 Feb 2017 22:21:42 +0100 Subject: [PATCH] OSMesa: Use framebuffer size for framebuffer --- src/osmesa_context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osmesa_context.c b/src/osmesa_context.c index 2b70e40f..579dc391 100644 --- a/src/osmesa_context.c +++ b/src/osmesa_context.c @@ -37,7 +37,7 @@ static void makeContextCurrentOSMesa(_GLFWwindow* window) if (window) { int width, height; - _glfwPlatformGetWindowSize(window, &width, &height); + _glfwPlatformGetFramebufferSize(window, &width, &height); // Check to see if we need to allocate a new buffer if ((window->context.osmesa.buffer == NULL) ||