summaryrefslogtreecommitdiffstats
path: root/src/opengl/gl2paintengineex/qtextureglyphcache_gl.cpp
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@nokia.com>2010-10-28 11:28:58 (GMT)
committerTor Arne Vestbø <tor.arne.vestbo@nokia.com>2010-10-28 11:28:58 (GMT)
commite7b9fb2e87641a36301babf457056b3350f0431c (patch)
tree3db3d29297d29ac1801a33d50c1273efec97352b /src/opengl/gl2paintengineex/qtextureglyphcache_gl.cpp
parentb36e845dde90313cf98df118ce6ffd88502b943b (diff)
parent77819edac505823226c40033e76d2dda0e8b363a (diff)
downloadQt-e7b9fb2e87641a36301babf457056b3350f0431c.zip
Qt-e7b9fb2e87641a36301babf457056b3350f0431c.tar.gz
Qt-e7b9fb2e87641a36301babf457056b3350f0431c.tar.bz2
Merge remote branch 'scm/qt/master'
Conflicts: mkspecs/symbian-gcce/qmake.conf
Diffstat (limited to 'src/opengl/gl2paintengineex/qtextureglyphcache_gl.cpp')
-rw-r--r--src/opengl/gl2paintengineex/qtextureglyphcache_gl.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/opengl/gl2paintengineex/qtextureglyphcache_gl.cpp b/src/opengl/gl2paintengineex/qtextureglyphcache_gl.cpp
index b8576cb..66c9ba8 100644
--- a/src/opengl/gl2paintengineex/qtextureglyphcache_gl.cpp
+++ b/src/opengl/gl2paintengineex/qtextureglyphcache_gl.cpp
@@ -238,10 +238,10 @@ void QGLTextureGlyphCache::resizeTextureData(int width, int height)
glVertexAttribPointer(QT_TEXTURE_COORDS_ATTR, 2, GL_FLOAT, GL_FALSE, 0, m_textureCoordinateArray);
m_blitProgram->bind();
- QGLContextPrivate* ctx_d = const_cast<QGLContextPrivate *>(ctx->d_func());
- ctx_d->setVertexAttribArrayEnabled(QT_VERTEX_COORDS_ATTR, true);
- ctx_d->setVertexAttribArrayEnabled(QT_TEXTURE_COORDS_ATTR, true);
- ctx_d->setVertexAttribArrayEnabled(QT_OPACITY_ATTR, false);
+ m_blitProgram->enableAttributeArray(int(QT_VERTEX_COORDS_ATTR));
+ m_blitProgram->enableAttributeArray(int(QT_TEXTURE_COORDS_ATTR));
+ m_blitProgram->disableAttributeArray(int(QT_OPACITY_ATTR));
+
blitProgram = m_blitProgram;
} else {