Skip unused function isCoreProfile() on non-ES2 platforms

Change-Id: Ia84e74512e7001986c620253cdf0bc431ebc00dc
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
This commit is contained in:
Tor Arne Vestbø 2014-11-05 12:59:04 +01:00
parent 78cdb6b4b1
commit 8d82066ff5

View File

@ -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)
{