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

Qt macOS fixes #6804

Merged
merged 2 commits into from
Oct 24, 2016
Merged

Qt macOS fixes #6804

merged 2 commits into from
Oct 24, 2016

Conversation

brunoabinader
Copy link
Member

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

@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.

Copy link
Contributor

@tmpsantos tmpsantos left a comment

Choose a reason for hiding this comment

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

LGTM on 🍏

// See https://bugreports.qt.io/browse/QTBUG-36802 for details.
static bool first = true;
if (!first) m_map.render();
first = false;
Copy link
Contributor

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
Member 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