diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2016-11-24 17:34:43 +0200 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2016-11-28 18:18:42 +0200 |
commit | b81255e5da6d8835c9732a8a3d5e962c1a4b1656 (patch) | |
tree | e990d96175eecbe19c5f819dfc40ed9f66ad3225 /platform/qt/app/mapwindow.cpp | |
parent | 74a7a5a0d458f4b7310b68e4e5fe900d3e907fd1 (diff) | |
download | qtlocation-mapboxgl-b81255e5da6d8835c9732a8a3d5e962c1a4b1656.tar.gz |
[qt, macos] Consume GL_INVALID_OPERATION from Qt
Diffstat (limited to 'platform/qt/app/mapwindow.cpp')
-rw-r--r-- | platform/qt/app/mapwindow.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/platform/qt/app/mapwindow.cpp b/platform/qt/app/mapwindow.cpp index e8e3a13489..8b76821479 100644 --- a/platform/qt/app/mapwindow.cpp +++ b/platform/qt/app/mapwindow.cpp @@ -310,14 +310,5 @@ void MapWindow::paintGL() m_map.resize(size(), size() * pixelRatio()); -#if QT_VERSION < 0x050400 && defined(__APPLE__) - // XXX GL framebuffer is valid only after first attempt of painting on - // older versions of Qt on macOS. - // See https://bugreports.qt.io/browse/QTBUG-36802 for details. - static bool first = true; - if (!first) m_map.render(); - first = false; -#else m_map.render(); -#endif } |