xcb_egl: fix clang error due to m_connection now being unused
Change-Id: I00846d26013d31856f049659069852d749d54b8e Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: Gatis Paeglis <gatis.paeglis@qt.io>
This commit is contained in:
parent
97d7d80e73
commit
e5a2c87dc7
@ -51,9 +51,8 @@ class QXcbEglContext : public QEGLPlatformContext
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
QXcbEglContext(const QSurfaceFormat &glFormat, QPlatformOpenGLContext *share,
|
QXcbEglContext(const QSurfaceFormat &glFormat, QPlatformOpenGLContext *share,
|
||||||
EGLDisplay display, QXcbConnection *c, const QVariant &nativeHandle)
|
EGLDisplay display, const QVariant &nativeHandle)
|
||||||
: QEGLPlatformContext(glFormat, share, display, 0, nativeHandle)
|
: QEGLPlatformContext(glFormat, share, display, 0, nativeHandle)
|
||||||
, m_connection(c)
|
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -83,9 +82,6 @@ public:
|
|||||||
QVariant nativeHandle() const {
|
QVariant nativeHandle() const {
|
||||||
return QVariant::fromValue<QEGLNativeContext>(QEGLNativeContext(eglContext(), eglDisplay()));
|
return QVariant::fromValue<QEGLNativeContext>(QEGLNativeContext(eglContext(), eglDisplay()));
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
|
||||||
QXcbConnection *m_connection;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
QT_END_NAMESPACE
|
QT_END_NAMESPACE
|
||||||
|
@ -102,7 +102,6 @@ QPlatformOpenGLContext *QXcbEglIntegration::createPlatformOpenGLContext(QOpenGLC
|
|||||||
QXcbEglContext *platformContext = new QXcbEglContext(screen->surfaceFormatFor(context->format()),
|
QXcbEglContext *platformContext = new QXcbEglContext(screen->surfaceFormatFor(context->format()),
|
||||||
context->shareHandle(),
|
context->shareHandle(),
|
||||||
eglDisplay(),
|
eglDisplay(),
|
||||||
screen->connection(),
|
|
||||||
context->nativeHandle());
|
context->nativeHandle());
|
||||||
context->setNativeHandle(platformContext->nativeHandle());
|
context->setNativeHandle(platformContext->nativeHandle());
|
||||||
return platformContext;
|
return platformContext;
|
||||||
|
Loading…
Reference in New Issue
Block a user