Skip unused function isCoreProfile() on non-ES2 platforms
Change-Id: Ia84e74512e7001986c620253cdf0bc431ebc00dc Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
This commit is contained in:
parent
78cdb6b4b1
commit
8d82066ff5
@ -82,10 +82,12 @@ QOpenGLTextureGlyphCache::~QOpenGLTextureGlyphCache()
|
||||
clear();
|
||||
}
|
||||
|
||||
#if !defined(QT_OPENGL_ES_2)
|
||||
static inline bool isCoreProfile()
|
||||
{
|
||||
return QOpenGLContext::currentContext()->format().profile() == QSurfaceFormat::CoreProfile;
|
||||
}
|
||||
#endif
|
||||
|
||||
void QOpenGLTextureGlyphCache::createTextureData(int width, int height)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user