summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2015-12-18 15:26:36 -0800
committerBruno de Oliveira Abinader <bruno@mapbox.com>2015-12-18 15:31:36 -0800
commit20d2ceef4b6c74c83dd1d77648ee46f3e593d268 (patch)
treebd72fd209731f95d370efdc61b8e09dbaa765d38 /platform
parent925687ab06892528f25fd4a79d27a55560634d96 (diff)
downloadqtlocation-mapboxgl-20d2ceef4b6c74c83dd1d77648ee46f3e593d268.tar.gz
[osx] Use framebuffer width/height in GLFW port
Framebuffer width/height takes pixel ration in consideration. Part of #3294.
Diffstat (limited to 'platform')
-rw-r--r--platform/default/glfw_view.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/default/glfw_view.cpp b/platform/default/glfw_view.cpp
index 9cb0ce69d9..66a41b0e10 100644
--- a/platform/default/glfw_view.cpp
+++ b/platform/default/glfw_view.cpp
@@ -434,7 +434,7 @@ void GLFWView::beforeRender() {
// can be accessed with no race because the main thread is blocked
// when we render. This will be more straightforward when we move
// rendering to the main thread.
- glViewport(0, 0, width, height);
+ glViewport(0, 0, fbWidth, fbHeight);
}
void GLFWView::afterRender() {