diff options
Diffstat (limited to 'src/plugins/platforms/xcb/gl_integrations/xcb_egl/qxcbeglcontext.h')
-rw-r--r-- | src/plugins/platforms/xcb/gl_integrations/xcb_egl/qxcbeglcontext.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/plugins/platforms/xcb/gl_integrations/xcb_egl/qxcbeglcontext.h b/src/plugins/platforms/xcb/gl_integrations/xcb_egl/qxcbeglcontext.h index af394d12ed..a2d677a82f 100644 --- a/src/plugins/platforms/xcb/gl_integrations/xcb_egl/qxcbeglcontext.h +++ b/src/plugins/platforms/xcb/gl_integrations/xcb_egl/qxcbeglcontext.h @@ -43,16 +43,15 @@ #include "qxcbeglwindow.h" #include <QtEglSupport/private/qeglplatformcontext_p.h> #include <QtEglSupport/private/qeglpbuffer_p.h> -#include <QtPlatformHeaders/QEGLNativeContext> QT_BEGIN_NAMESPACE class QXcbEglContext : public QEGLPlatformContext { public: - QXcbEglContext(const QSurfaceFormat &glFormat, QPlatformOpenGLContext *share, - EGLDisplay display, const QVariant &nativeHandle) - : QEGLPlatformContext(glFormat, share, display, nullptr, nativeHandle) + using QEGLPlatformContext::QEGLPlatformContext; + QXcbEglContext(const QSurfaceFormat &glFormat, QPlatformOpenGLContext *share, EGLDisplay display) + : QEGLPlatformContext(glFormat, share, display, nullptr) { } @@ -86,10 +85,6 @@ public: else return static_cast<QEGLPbuffer *>(surface)->pbuffer(); } - - QVariant nativeHandle() const { - return QVariant::fromValue<QEGLNativeContext>(QEGLNativeContext(eglContext(), eglDisplay())); - } }; QT_END_NAMESPACE |