diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2017-03-22 10:36:48 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2017-03-22 14:15:50 +0100 |
commit | d20327844cac88b6bf42b201eac35e816a189a8a (patch) | |
tree | b4bda78efe5dc150cdaba301326b0a9cc20abc04 /platform/qt/app | |
parent | e488ca702e8f822ba6297a2f3c933ee22ca6ce42 (diff) | |
download | qtlocation-mapboxgl-d20327844cac88b6bf42b201eac35e816a189a8a.tar.gz |
[qt] Add setFramebufferObject() for correct FBO binding restoration
Diffstat (limited to 'platform/qt/app')
-rw-r--r-- | platform/qt/app/mapwindow.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/platform/qt/app/mapwindow.cpp b/platform/qt/app/mapwindow.cpp index e29e62f157..926d504904 100644 --- a/platform/qt/app/mapwindow.cpp +++ b/platform/qt/app/mapwindow.cpp @@ -399,5 +399,9 @@ void MapWindow::paintGL() { m_frameDraws++; m_map->resize(size(), size() * pixelRatio()); +#if QT_VERSION >= 0x050400 + // When we're using QOpenGLWidget, we need to tell Mapbox GL about the framebuffer we're using. + m_map->setFramebufferObject(defaultFramebufferObject()); +#endif m_map->render(); } |