From e8065cfc1084343e10a63c3dec589f99e8be49a8 Mon Sep 17 00:00:00 2001 From: "Thiago Marcos P. Santos" Date: Tue, 24 Jan 2017 15:30:15 +0200 Subject: [PATCH] [glfw] Fix viewport not being resized Reproducible on Linux. On OSX, map looks slightly scaled. --- platform/glfw/glfw_view.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/glfw/glfw_view.cpp b/platform/glfw/glfw_view.cpp index 0d8307395..3c6ea1ded 100644 --- a/platform/glfw/glfw_view.cpp +++ b/platform/glfw/glfw_view.cpp @@ -386,6 +386,7 @@ void GLFWView::onFramebufferResize(GLFWwindow *window, int width, int height) { GLFWView *view = reinterpret_cast(glfwGetWindowUserPointer(window)); view->fbWidth = width; view->fbHeight = height; + view->bind(); // This is only triggered when the framebuffer is resized, but not the window. It can // happen when you move the window between screens with a different pixel ratio.