diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-09-23 14:28:30 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-09-23 14:28:30 (GMT) |
commit | 7a14055269c31a389d895a2fffa1e9d897e1bee3 (patch) | |
tree | 013a6b86ec921aa61ef97f75ba9cdb8d42b7226d /src/opengl/gl2paintengineex | |
parent | 222a21187c3e3fe4ab6f436f30bde1b1dc0b2212 (diff) | |
download | Qt-7a14055269c31a389d895a2fffa1e9d897e1bee3.zip Qt-7a14055269c31a389d895a2fffa1e9d897e1bee3.tar.gz Qt-7a14055269c31a389d895a2fffa1e9d897e1bee3.tar.bz2 |
Remove unnecessary attribute changes
The only consumer of TextDrawingMode is drawCachedGlyphs, and it always
sets these two attrib pointers anyway.
Reviewed-By: Gunnar Sletta
Diffstat (limited to 'src/opengl/gl2paintengineex')
-rw-r--r-- | src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp b/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp index 0426ffd..42792ac 100644 --- a/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp +++ b/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp @@ -612,8 +612,6 @@ void QGL2PaintEngineExPrivate::transferMode(EngineMode newMode) } if (newMode == TextDrawingMode) { - setVertexAttributePointer(QT_VERTEX_COORDS_ATTR, (GLfloat*)vertexCoordinateArray.data()); - setVertexAttributePointer(QT_TEXTURE_COORDS_ATTR, (GLfloat*)textureCoordinateArray.data()); shaderManager->setHasComplexGeometry(true); } else { shaderManager->setHasComplexGeometry(false); |