summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <thiago@mapbox.com>2017-01-24 15:30:15 +0200
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2017-02-13 19:10:21 +0200
commite8065cfc1084343e10a63c3dec589f99e8be49a8 (patch)
tree7c152cb8257adac573bf4fdb325f281aa1bace25
parentf97e36acc80cda33eb8000e88fa02cfdc53009e8 (diff)
downloadqtlocation-mapboxgl-e8065cfc1084343e10a63c3dec589f99e8be49a8.tar.gz
[glfw] Fix viewport not being resized
Reproducible on Linux. On OSX, map looks slightly scaled.
-rw-r--r--platform/glfw/glfw_view.cpp1
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.