diff options
author | Thiago Marcos P. Santos <thiago@mapbox.com> | 2017-01-24 15:30:15 +0200 |
---|---|---|
committer | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2017-02-13 19:10:21 +0200 |
commit | e8065cfc1084343e10a63c3dec589f99e8be49a8 (patch) | |
tree | 7c152cb8257adac573bf4fdb325f281aa1bace25 /platform/glfw | |
parent | f97e36acc80cda33eb8000e88fa02cfdc53009e8 (diff) | |
download | qtlocation-mapboxgl-e8065cfc1084343e10a63c3dec589f99e8be49a8.tar.gz |
[glfw] Fix viewport not being resized
Reproducible on Linux. On OSX, map looks slightly scaled.
Diffstat (limited to 'platform/glfw')
-rw-r--r-- | platform/glfw/glfw_view.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/glfw/glfw_view.cpp b/platform/glfw/glfw_view.cpp index 0d83073952..3c6ea1ded9 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<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. |