summaryrefslogtreecommitdiffstats
path: root/src/opengl/qpixmapdata_gl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/opengl/qpixmapdata_gl.cpp')
-rw-r--r--src/opengl/qpixmapdata_gl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/opengl/qpixmapdata_gl.cpp b/src/opengl/qpixmapdata_gl.cpp
index 4351c0b..3bc0d4f 100644
--- a/src/opengl/qpixmapdata_gl.cpp
+++ b/src/opengl/qpixmapdata_gl.cpp
@@ -163,10 +163,10 @@ void QGLPixmapGLPaintDevice::beginPaint()
glDisable(GL_BLEND);
#if !defined(QT_OPENGL_ES_2)
- glMatrixMode(GL_MODELVIEW_MATRIX);
+ glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
- glMatrixMode(GL_PROJECTION_MATRIX);
+ glMatrixMode(GL_PROJECTION);
glLoadIdentity();
glOrtho(0, data->width(), data->height(), 0, -999999, 999999);
#endif