summaryrefslogtreecommitdiffstats
path: root/src/opengl/qglpaintdevice.cpp
diff options
context:
space:
mode:
authorRhys Weatherley <rhys.weatherley@nokia.com>2009-09-09 22:51:35 (GMT)
committerRhys Weatherley <rhys.weatherley@nokia.com>2009-09-09 22:51:35 (GMT)
commit77c3beb90e848a7c38459cd149f7eba977978955 (patch)
treeeb2384738261880df5ce7d0591f2423bb0eaf46f /src/opengl/qglpaintdevice.cpp
parent2196db60fa75fc559adb1405c1b43858122ff9e7 (diff)
downloadQt-77c3beb90e848a7c38459cd149f7eba977978955.zip
Qt-77c3beb90e848a7c38459cd149f7eba977978955.tar.gz
Qt-77c3beb90e848a7c38459cd149f7eba977978955.tar.bz2
Suppress warnings in QtOpenGL on OpenGL/ES 1.1 systems
Reviewed-by: trustme
Diffstat (limited to 'src/opengl/qglpaintdevice.cpp')
-rw-r--r--src/opengl/qglpaintdevice.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opengl/qglpaintdevice.cpp b/src/opengl/qglpaintdevice.cpp
index 8863b01..19db6c0 100644
--- a/src/opengl/qglpaintdevice.cpp
+++ b/src/opengl/qglpaintdevice.cpp
@@ -180,8 +180,8 @@ QGLPaintDevice* QGLPaintDevice::getDevice(QPaintDevice* pd)
glpd = &(static_cast<QGLFramebufferObject*>(pd)->d_func()->glDevice);
break;
case QInternal::Pixmap: {
- QPixmapData* pmd = static_cast<QPixmap*>(pd)->pixmapData();
#if !defined(QT_OPENGL_ES_1) && !defined(QT_OPENGL_ES_1_CL)
+ QPixmapData* pmd = static_cast<QPixmap*>(pd)->pixmapData();
Q_ASSERT(pmd->classId() == QPixmapData::OpenGLClass);
glpd = static_cast<QGLPixmapData*>(pmd)->glDevice();
#else