Remove unused member m_eglApi
It's not used anywhere. Found by Clang 3.4: qeglplatformcontext_p.h:80:13: error: private field 'm_eglApi' is not used [-Werror,-Wunused-private-field] Change-Id: I37ce240a9d07ef570e0814de366dbb7cd13ad714 Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
This commit is contained in:
parent
17da13baaa
commit
52441ecd44
@ -71,19 +71,19 @@ static inline void bindApi(const QSurfaceFormat &format)
|
|||||||
QEGLPlatformContext::QEGLPlatformContext(const QSurfaceFormat &format, QPlatformOpenGLContext *share, EGLDisplay display,
|
QEGLPlatformContext::QEGLPlatformContext(const QSurfaceFormat &format, QPlatformOpenGLContext *share, EGLDisplay display,
|
||||||
EGLenum eglApi)
|
EGLenum eglApi)
|
||||||
: m_eglDisplay(display)
|
: m_eglDisplay(display)
|
||||||
, m_eglApi(eglApi)
|
|
||||||
, m_eglConfig(q_configFromGLFormat(display, format))
|
, m_eglConfig(q_configFromGLFormat(display, format))
|
||||||
{
|
{
|
||||||
init(format, share);
|
init(format, share);
|
||||||
|
Q_UNUSED(eglApi);
|
||||||
}
|
}
|
||||||
|
|
||||||
QEGLPlatformContext::QEGLPlatformContext(const QSurfaceFormat &format, QPlatformOpenGLContext *share, EGLDisplay display,
|
QEGLPlatformContext::QEGLPlatformContext(const QSurfaceFormat &format, QPlatformOpenGLContext *share, EGLDisplay display,
|
||||||
EGLConfig config, EGLenum eglApi)
|
EGLConfig config, EGLenum eglApi)
|
||||||
: m_eglDisplay(display)
|
: m_eglDisplay(display)
|
||||||
, m_eglApi(eglApi)
|
|
||||||
, m_eglConfig(config)
|
, m_eglConfig(config)
|
||||||
{
|
{
|
||||||
init(format, share);
|
init(format, share);
|
||||||
|
Q_UNUSED(eglApi);
|
||||||
}
|
}
|
||||||
|
|
||||||
void QEGLPlatformContext::init(const QSurfaceFormat &format, QPlatformOpenGLContext *share)
|
void QEGLPlatformContext::init(const QSurfaceFormat &format, QPlatformOpenGLContext *share)
|
||||||
|
@ -77,7 +77,6 @@ private:
|
|||||||
EGLContext m_eglContext;
|
EGLContext m_eglContext;
|
||||||
EGLContext m_shareContext;
|
EGLContext m_shareContext;
|
||||||
EGLDisplay m_eglDisplay;
|
EGLDisplay m_eglDisplay;
|
||||||
EGLenum m_eglApi;
|
|
||||||
EGLConfig m_eglConfig;
|
EGLConfig m_eglConfig;
|
||||||
QSurfaceFormat m_format;
|
QSurfaceFormat m_format;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user