diff options
Diffstat (limited to 'src/gui/platform')
| -rw-r--r-- | src/gui/platform/macos/qcocoaplatforminterface.mm | 4 | ||||
| -rw-r--r-- | src/gui/platform/unix/qunixplatforminterface.cpp | 4 | ||||
| -rw-r--r-- | src/gui/platform/windows/qwindowsplatforminterface.cpp | 4 |
3 files changed, 12 insertions, 0 deletions
diff --git a/src/gui/platform/macos/qcocoaplatforminterface.mm b/src/gui/platform/macos/qcocoaplatforminterface.mm index a1410a63b24..2fc9228ab10 100644 --- a/src/gui/platform/macos/qcocoaplatforminterface.mm +++ b/src/gui/platform/macos/qcocoaplatforminterface.mm @@ -48,6 +48,8 @@ QT_BEGIN_NAMESPACE using namespace QPlatformInterface::Private; +#ifndef QT_NO_OPENGL + QT_DEFINE_PLATFORM_INTERFACE(QCocoaGLContext, QOpenGLContext); QT_DEFINE_PRIVATE_PLATFORM_INTERFACE(QCocoaGLIntegration); @@ -57,4 +59,6 @@ QOpenGLContext *QPlatformInterface::QCocoaGLContext::fromNative(NSOpenGLContext &QCocoaGLIntegration::createOpenGLContext>(nativeContext, shareContext); } +#endif // QT_NO_OPENGL + QT_END_NAMESPACE diff --git a/src/gui/platform/unix/qunixplatforminterface.cpp b/src/gui/platform/unix/qunixplatforminterface.cpp index a090ef6601a..2584a9b91b3 100644 --- a/src/gui/platform/unix/qunixplatforminterface.cpp +++ b/src/gui/platform/unix/qunixplatforminterface.cpp @@ -49,6 +49,8 @@ QT_BEGIN_NAMESPACE using namespace QPlatformInterface::Private; +#ifndef QT_NO_OPENGL + #if defined(Q_OS_LINUX) QT_DEFINE_PLATFORM_INTERFACE(QGLXContext, QOpenGLContext); QT_DEFINE_PRIVATE_PLATFORM_INTERFACE(QGLXIntegration); @@ -77,4 +79,6 @@ QOpenGLContext *QPlatformInterface::QEGLContext::fromNative(EGLContext context, } #endif +#endif // QT_NO_OPENGL + QT_END_NAMESPACE diff --git a/src/gui/platform/windows/qwindowsplatforminterface.cpp b/src/gui/platform/windows/qwindowsplatforminterface.cpp index ceb65cda5b8..6ace9814757 100644 --- a/src/gui/platform/windows/qwindowsplatforminterface.cpp +++ b/src/gui/platform/windows/qwindowsplatforminterface.cpp @@ -46,6 +46,8 @@ QT_BEGIN_NAMESPACE using namespace QPlatformInterface::Private; +#ifndef QT_NO_OPENGL + QT_DEFINE_PLATFORM_INTERFACE(QWGLContext, QOpenGLContext); QT_DEFINE_PRIVATE_PLATFORM_INTERFACE(QWindowsGLIntegration); @@ -61,4 +63,6 @@ QOpenGLContext *QPlatformInterface::QWGLContext::fromNative(HGLRC context, HWND &QWindowsGLIntegration::createOpenGLContext>(context, window, shareContext); } +#endif // QT_NO_OPENGL + QT_END_NAMESPACE |
