Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Qt macOS fixes - #6804

Merged
brunoabinader merged 2 commits into
masterfrom
qt-fixes
Oct 24, 2016
Merged

brunoabinader merged 2 commits into
masterfrom
qt-fixes

Conversation

@brunoabinader

Copy link
Copy Markdown
Contributor

On this PR:

  • Added a workaround fix for an issue with older Qt versions preventing the QMapboxGL demo application from running.
  • Enforce C++14 as default standard on CMake to satisfy latest Qt builds.

Fixes #6794.

@brunoabinader brunoabinader added build Qt Mapbox Maps SDK for Qt, aka Qt Location Mapbox GL labels Oct 24, 2016
@mention-bot

Copy link
Copy Markdown

@brunoabinader, thanks for your PR! By analyzing the history of the files in this pull request, we identified @tmpsantos, @kkaefer and @springmeyer to be potential reviewers.

@tmpsantos tmpsantos left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM on 🍏

@brunoabinader
brunoabinader merged commit 89ba2f2 into master Oct 24, 2016
@brunoabinader
brunoabinader deleted the qt-fixes branch October 24, 2016 18:38
// See https://bugreports.qt.io/browse/QTBUG-36802 for details.
static bool first = true;
if (!first) m_map.render();
first = false;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure I understand this fix. Can you explain?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a bug in older versions of Qt for macOS - the first call to paintGL() for the QGLWidget shows an invalid frame buffer (status 33305), which is caught up by our GL sanity check here. After the first paintGL() call, there is a paintEvent() that internally enforces the window to be shown, and it seems only after that point the GL context seems to be usable.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

build Qt Mapbox Maps SDK for Qt, aka Qt Location Mapbox GL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bitrise Qt5 build bot is failing

4 participants