diff options
author | Laszlo Agocs <laszlo.agocs@theqtcompany.com> | 2015-05-04 12:34:48 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@theqtcompany.com> | 2015-05-06 10:39:10 +0000 |
commit | 4ee087d0baa441ecf21b9154bf0c460edb44ad14 (patch) | |
tree | 86b0f1710d11fbd8761baee9a3eedc5dd5a8d9c8 /src/plugins/platforms/xcb/gl_integrations/qxcbglintegration.h | |
parent | 39e3977cc532bcab90410bb85b7bda664dd6bfd3 (diff) |
xcb: Fix -no-opengl builds
The GLX and EGL integrations are skipped correctly but the base class still
contained createPlatformOpenGLContext() with OpenGL-specific types.
Task-number: QTBUG-44998
Change-Id: I727ded7ca8589b163fc1271709dd718572b51c3e
Reviewed-by: Gunnar Sletta <gunnar@sletta.org>
Diffstat (limited to 'src/plugins/platforms/xcb/gl_integrations/qxcbglintegration.h')
-rw-r--r-- | src/plugins/platforms/xcb/gl_integrations/qxcbglintegration.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/platforms/xcb/gl_integrations/qxcbglintegration.h b/src/plugins/platforms/xcb/gl_integrations/qxcbglintegration.h index c71c668f31..74c117582a 100644 --- a/src/plugins/platforms/xcb/gl_integrations/qxcbglintegration.h +++ b/src/plugins/platforms/xcb/gl_integrations/qxcbglintegration.h @@ -57,7 +57,9 @@ public: virtual bool handleXcbEvent(xcb_generic_event_t *event, uint responseType); virtual QXcbWindow *createWindow(QWindow *window) const = 0; +#ifndef QT_NO_OPENGL virtual QPlatformOpenGLContext *createPlatformOpenGLContext(QOpenGLContext *context) const = 0; +#endif virtual QPlatformOffscreenSurface *createPlatformOffscreenSurface(QOffscreenSurface *surface) const = 0; virtual QXcbNativeInterfaceHandler *nativeInterfaceHandler() const { return Q_NULLPTR; } |