[glfw] Fix viewport not being resized

Reproducible on Linux. On OSX, map looks slightly scaled.
This commit is contained in:
Thiago Marcos P. Santos
2017-01-24 15:30:15 +02:00
committed by Thiago Marcos P. Santos
parent f97e36acc8
commit e8065cfc10

View File

@@ -386,6 +386,7 @@ void GLFWView::onFramebufferResize(GLFWwindow *window, int width, int height) {
GLFWView *view = reinterpret_cast<GLFWView *>(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.