diff options
author | Björn Breitmeyer <bjoern.breitmeyer@kdab.com> | 2014-02-19 11:36:28 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-02-21 08:16:05 +0100 |
commit | fd5c629f4336b1f79afc653fceaf0f930e71eccd (patch) | |
tree | fa1a90513a934bf45730112835f8ca6c48bbdae7 /src/quick/scenegraph/qsgdefaultdistancefieldglyphcache_p.h | |
parent | c6c95915f076577d5194044d793889cb8b690230 (diff) |
Don't use Vertexarrays
If custom Glcode is used and a buffer is not unbound
the drawcall will take the bound buffer over the
vertex array, so its a bad idea to use them, besides
the fact that in core profile buffers should be used.
Change-Id: I4107d85b664a0c67207652ae34c2569572fa6a8b
Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
Diffstat (limited to 'src/quick/scenegraph/qsgdefaultdistancefieldglyphcache_p.h')
-rw-r--r-- | src/quick/scenegraph/qsgdefaultdistancefieldglyphcache_p.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/quick/scenegraph/qsgdefaultdistancefieldglyphcache_p.h b/src/quick/scenegraph/qsgdefaultdistancefieldglyphcache_p.h index a5833af5fb..b561bc08f7 100644 --- a/src/quick/scenegraph/qsgdefaultdistancefieldglyphcache_p.h +++ b/src/quick/scenegraph/qsgdefaultdistancefieldglyphcache_p.h @@ -45,6 +45,7 @@ #include "qsgadaptationlayer_p.h" #include <QtGui/qopenglfunctions.h> #include <qopenglshaderprogram.h> +#include <qopenglbuffer.h> #include <QtGui/private/qopenglengineshadersource_p.h> #include <private/qsgareaallocator_p.h> @@ -133,8 +134,7 @@ private: QSGAreaAllocator *m_areaAllocator; QOpenGLShaderProgram *m_blitProgram; - GLfloat m_blitVertexCoordinateArray[8]; - GLfloat m_blitTextureCoordinateArray[8]; + QOpenGLBuffer m_blitBuffer; QOpenGLSharedResourceGuard *m_fboGuard; #if !defined(QT_OPENGL_ES_2) |