summaryrefslogtreecommitdiffstats
path: root/src/gui/opengl/qopengltextureglyphcache_p.h
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@digia.com>2014-02-24 16:40:00 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-02-26 12:58:00 +0100
commit357363dd51e885447202fc753792a49b5812539a (patch)
treeb0a8752e4accb78467beb968bb94add448ec2cea /src/gui/opengl/qopengltextureglyphcache_p.h
parenta2f79b0d0f2373179998dd226bc5a86ad31f4e7e (diff)
Texture glyph cache: Use a vbo
It is not going to work with core profile otherwise. This fixes one of the several problems that make native text rendering in Quick impossible with OpenGL core profile. The GL2 paint engine path is not changed, that continues to use client side pointers. Task-number: QTBUG-36993 Change-Id: Icfbd6efc894a79a3a84568fb792c1cb6692469cb Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
Diffstat (limited to 'src/gui/opengl/qopengltextureglyphcache_p.h')
-rw-r--r--src/gui/opengl/qopengltextureglyphcache_p.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/opengl/qopengltextureglyphcache_p.h b/src/gui/opengl/qopengltextureglyphcache_p.h
index a361a79de2..394c28f7ff 100644
--- a/src/gui/opengl/qopengltextureglyphcache_p.h
+++ b/src/gui/opengl/qopengltextureglyphcache_p.h
@@ -57,6 +57,7 @@
#include <private/qopenglcontext_p.h>
#include <qopenglshaderprogram.h>
#include <qopenglfunctions.h>
+#include <qopenglbuffer.h>
// #define QT_GL_TEXTURE_GLYPH_CACHE_DEBUG
@@ -162,6 +163,8 @@ private:
GLfloat m_textureCoordinateArray[8];
int m_serialNumber;
+
+ QOpenGLBuffer m_buffer;
};
QT_END_NAMESPACE