Commit 8d82066f authored by Tor Arne Vestbø's avatar Tor Arne Vestbø
Browse files

Skip unused function isCoreProfile() on non-ES2 platforms


Change-Id: Ia84e74512e7001986c620253cdf0bc431ebc00dc
Reviewed-by: default avatarSimon Hausmann <simon.hausmann@digia.com>
Showing with 2 additions and 0 deletions
......@@ -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)
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment