From 7d19f3b647f4e5ac4b5f0d2278703476f5a9ed1c Mon Sep 17 00:00:00 2001 From: Andy Nichols Date: Wed, 10 Aug 2016 17:56:10 +0200 Subject: Fix building when QT_NO_OPENGL is defined Task-number: QTBUG-54327 Change-Id: I759598d56aa0a74b64092365b422a743fb508ac6 Reviewed-by: Qt CI Bot Reviewed-by: Allan Sandfeld Jensen --- src/core/content_browser_client_qt.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/core/content_browser_client_qt.cpp') diff --git a/src/core/content_browser_client_qt.cpp b/src/core/content_browser_client_qt.cpp index a2453070e..64964dc09 100644 --- a/src/core/content_browser_client_qt.cpp +++ b/src/core/content_browser_client_qt.cpp @@ -100,7 +100,9 @@ #include #include -#include +#ifndef QT_NO_OPENGL +# include +#endif #include QT_BEGIN_NAMESPACE @@ -322,12 +324,14 @@ private: void ShareGroupQtQuick::AboutToAddFirstContext() { +#ifndef QT_NO_OPENGL // This currently has to be setup by ::main in all applications using QQuickWebEngineView with delegated rendering. QOpenGLContext *shareContext = qt_gl_global_share_context(); if (!shareContext) { qFatal("QWebEngine: OpenGL resource sharing is not set up in QtQuick. Please make sure to call QtWebEngine::initialize() in your main() function."); } m_shareContextQtQuick = make_scoped_refptr(new QtShareGLContext(shareContext)); +#endif } class QuotaPermissionContextQt : public content::QuotaPermissionContext { -- cgit v1.2.3