diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2016-10-28 09:49:14 +0300 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2016-10-28 14:36:07 +0300 |
commit | fa96612888940df240dbad81c02a4b7b14654f06 (patch) | |
tree | 8436ec0e6a7b423b1e816f695ae8813bf2608a27 /platform | |
parent | 62b56b799a7d4fcd1a8f151eed878054b862da5b (diff) | |
download | qtlocation-mapboxgl-fa96612888940df240dbad81c02a4b7b14654f06.tar.gz |
[Qt] Fix viewport size for Linux on Qt5
Diffstat (limited to 'platform')
-rw-r--r-- | platform/qt/src/qmapboxgl.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/platform/qt/src/qmapboxgl.cpp b/platform/qt/src/qmapboxgl.cpp index d54f6b3409..4fdd9eb293 100644 --- a/platform/qt/src/qmapboxgl.cpp +++ b/platform/qt/src/qmapboxgl.cpp @@ -850,16 +850,12 @@ void QMapboxGLPrivate::updateFramebufferBinding(QOpenGLFramebufferObject *fbo_) fbo = fbo_; if (fbo) { getContext().bindFramebuffer.setDirty(); - getContext().viewport.setCurrentValue( - { 0, - 0, - { static_cast<uint32_t>(fbo->width()), static_cast<uint32_t>(fbo->height()) } }); + getContext().viewport = { + 0, 0, { static_cast<uint32_t>(fbo->width()), static_cast<uint32_t>(fbo->height()) } }; } else { getContext().bindFramebuffer.setCurrentValue(0); - getContext().viewport.setCurrentValue( - { 0, - 0, - { static_cast<uint32_t>(fbSize.width()), static_cast<uint32_t>(fbSize.height()) } }); + getContext().viewport = { + 0, 0, { static_cast<uint32_t>(fbSize.width()), static_cast<uint32_t>(fbSize.height()) } }; } } |