summaryrefslogtreecommitdiffstats
path: root/src/gui/opengl
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@digia.com>2014-11-05 12:59:04 +0100
committerTor Arne Vestbø <tor.arne.vestbo@digia.com>2014-11-05 20:34:58 +0100
commit8d82066ff5a00e2bc77716f90688550a6a779dd9 (patch)
treeebad39585f4f7b5e6b6c55cc05652b0d071c3379 /src/gui/opengl
parent78cdb6b4b1c8c6213e967be56767d7dadd2bf8bf (diff)
Skip unused function isCoreProfile() on non-ES2 platforms
Change-Id: Ia84e74512e7001986c620253cdf0bc431ebc00dc Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/gui/opengl')
-rw-r--r--src/gui/opengl/qopengltextureglyphcache.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/opengl/qopengltextureglyphcache.cpp b/src/gui/opengl/qopengltextureglyphcache.cpp
index 0f70a01014..cd268cd685 100644
--- a/src/gui/opengl/qopengltextureglyphcache.cpp
+++ b/src/gui/opengl/qopengltextureglyphcache.cpp
@@ -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)
{