summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <tmpsantos@gmail.com>2019-11-29 13:38:26 +0200
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2019-11-29 15:03:45 +0200
commit105ddad3891fcc12a0d77d38ec26df98420e387e (patch)
tree50f431676ad8083089a0e115b1daebe220c51b1d /platform
parentaf0d46c367f206feb0f22e1c5d97b4b704a72499 (diff)
downloadqtlocation-mapboxgl-105ddad3891fcc12a0d77d38ec26df98420e387e.tar.gz
[glfw] Fix map not resizing on Linux
Apparently GLFW is implicitly calling glViewport on macOS but not on Linux. Force setting the viewport instead of assuming a value.
Diffstat (limited to 'platform')
-rw-r--r--platform/glfw/glfw_gl_backend.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/glfw/glfw_gl_backend.cpp b/platform/glfw/glfw_gl_backend.cpp
index d0975fc08f..0a949016ed 100644
--- a/platform/glfw/glfw_gl_backend.cpp
+++ b/platform/glfw/glfw_gl_backend.cpp
@@ -58,7 +58,7 @@ mbgl::gl::ProcAddress GLFWGLBackend::getExtensionFunctionPointer(const char* nam
void GLFWGLBackend::updateAssumedState() {
assumeFramebufferBinding(0);
- assumeViewport(0, 0, size);
+ setViewport(0, 0, size);
}
mbgl::Size GLFWGLBackend::getSize() const {