summaryrefslogtreecommitdiffstats
path: root/src/gui/opengl/qopenglgradientcache_p.h
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@theqtcompany.com>2015-06-29 16:55:06 +0200
committerLaszlo Agocs <laszlo.agocs@theqtcompany.com>2015-06-29 15:59:06 +0000
commit29e88fd8f066c14a405a52bbfe3715dc3e5e891f (patch)
treebbfbdb5862d6c63fc661f6ed1924782c0c7b2c58 /src/gui/opengl/qopenglgradientcache_p.h
parentc937bbb4fe708f7f873ca630c6ff225f9a3f9ace (diff)
Do not use 16 bits per color on GLES
unless GL_EXT_texture_norm16 (and so GL_RGBA16) is present. Change-Id: Ic15b81b8134fda147e96301b7f78cabe07a05d9e Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
Diffstat (limited to 'src/gui/opengl/qopenglgradientcache_p.h')
-rw-r--r--src/gui/opengl/qopenglgradientcache_p.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/opengl/qopenglgradientcache_p.h b/src/gui/opengl/qopenglgradientcache_p.h
index d368f4bcfc..61949d5b7c 100644
--- a/src/gui/opengl/qopenglgradientcache_p.h
+++ b/src/gui/opengl/qopenglgradientcache_p.h
@@ -86,6 +86,9 @@ private:
inline void generateGradientColorTable(const QGradient& gradient,
QRgba64 *colorTable,
int size, qreal opacity) const;
+ inline void generateGradientColorTable(const QGradient& gradient,
+ uint *colorTable,
+ int size, qreal opacity) const;
GLuint addCacheElement(quint64 hash_val, const QGradient &gradient, qreal opacity);
void cleanCache();