summaryrefslogtreecommitdiffstats
path: root/src/opengl/qpaintengine_opengl.cpp
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar@trolltech.com>2009-08-27 11:55:43 (GMT)
committerGunnar Sletta <gunnar@trolltech.com>2009-08-27 12:03:52 (GMT)
commitfffe92c1c46f8a78b7d2bcef08d18a3550e91293 (patch)
tree90e3011a548842dfabaf27442594a5b642f7f2df /src/opengl/qpaintengine_opengl.cpp
parent6a81a485136f780d33ce2977482e8c0e53aef1eb (diff)
downloadQt-fffe92c1c46f8a78b7d2bcef08d18a3550e91293.zip
Qt-fffe92c1c46f8a78b7d2bcef08d18a3550e91293.tar.gz
Qt-fffe92c1c46f8a78b7d2bcef08d18a3550e91293.tar.bz2
Fix y orientation of pixmap brushes and pixmaptiles in gl1 engine
Reviewed-by: Samuel
Diffstat (limited to 'src/opengl/qpaintengine_opengl.cpp')
-rw-r--r--src/opengl/qpaintengine_opengl.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/opengl/qpaintengine_opengl.cpp b/src/opengl/qpaintengine_opengl.cpp
index ade67d3..ac41ab0 100644
--- a/src/opengl/qpaintengine_opengl.cpp
+++ b/src/opengl/qpaintengine_opengl.cpp
@@ -4351,13 +4351,6 @@ void QOpenGLPaintEngine::drawTiledPixmap(const QRectF &r, const QPixmap &pm, con
GLdouble tc_w = r.width()/pm.width();
GLdouble tc_h = r.height()/pm.height();
- // Rotate the texture so that it is aligned correctly and the
- // wrapping is done correctly
- glMatrixMode(GL_TEXTURE);
- glPushMatrix();
- glRotatef(180.0, 0.0, 1.0, 0.0);
- glRotatef(180.0, 0.0, 0.0, 1.0);
-
q_vertexType vertexArray[4*2];
q_vertexType texCoordArray[4*2];
@@ -4376,7 +4369,6 @@ void QOpenGLPaintEngine::drawTiledPixmap(const QRectF &r, const QPixmap &pm, con
glDrawArrays(GL_TRIANGLE_FAN, 0, 4);
glDisableClientState(GL_TEXTURE_COORD_ARRAY);
glDisableClientState(GL_VERTEX_ARRAY);
- glPopMatrix();
glDisable(GL_TEXTURE_2D);
#ifndef QT_OPENGL_ES