diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/quick/quicknanobrowser/main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/quick/quicknanobrowser/main.cpp b/examples/quick/quicknanobrowser/main.cpp index 6c2f91de6..0f0278c22 100644 --- a/examples/quick/quicknanobrowser/main.cpp +++ b/examples/quick/quicknanobrowser/main.cpp @@ -53,12 +53,14 @@ int main(int argc, char **argv) { Application app(argc, argv); +#if (QT_VERSION >= QT_VERSION_CHECK(5, 2, 0)) // This is currently needed by all QtWebEngine application using the HW accelerated QQuickWebView. // It enables sharing between the QOpenGLContext of all QQuickWindows of the application. // We have to do so until we expose a public API for it, or chose enable it by default in Qt 5.3.0. QOpenGLContext shareContext; shareContext.create(); QSGContext::setSharedOpenGLContext(&shareContext); +#endif ApplicationEngine appEngine; |