Merge lp:~ubuntu-sdk-team/ubuntu-ui-toolkit/newOpenGlPrivates into lp:ubuntu-ui-toolkit/staging

Proposed by Cris Dywan
Status: Merged
Approved by: Cris Dywan
Approved revision: 1353
Merged at revision: 1354
Proposed branch: lp:~ubuntu-sdk-team/ubuntu-ui-toolkit/newOpenGlPrivates
Merge into: lp:ubuntu-ui-toolkit/staging
Diff against target: 19 lines (+5/-3)
1 file modified
tests/launcher/launcher.cpp (+5/-3)
To merge this branch: bzr merge lp:~ubuntu-sdk-team/ubuntu-ui-toolkit/newOpenGlPrivates
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Approve
Timo Jyrinki Approve
Review via email: mp+243373@code.launchpad.net

Commit message

Use new qt_gl_set_global_share_context setter with Qt 5.4

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote :
review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tests/launcher/launcher.cpp'
2--- tests/launcher/launcher.cpp 2014-11-18 13:38:48 +0000
3+++ tests/launcher/launcher.cpp 2014-12-02 10:29:14 +0000
4@@ -64,10 +64,12 @@
5 // Oxide and QWebEngine need a shared context
6 QScopedPointer<QOpenGLContext> shareContext;
7 shareContext.reset(new QOpenGLContext);
8-#if QT_VERSION < QT_VERSION_CHECK(5, 3, 0)
9+#if QT_VERSION >= QT_VERSION_CHECK(5, 4, 0)
10+ qt_gl_set_global_share_context(shareContext.data());
11+#elif QT_VERSION >= QT_VERSION_CHECK(5, 3, 0)
12+ QOpenGLContextPrivate::setGlobalShareContext(shareContext.data());
13+#else
14 QSGContext::setSharedOpenGLContext(shareContext.data());
15-#else
16- QOpenGLContextPrivate::setGlobalShareContext(shareContext.data());
17 #endif
18 QGuiApplication::setApplicationName("UITK Launcher");
19 QGuiApplication application(argc, (char**)argv);

Subscribers

People subscribed via source and target branches