diff options
author | Rhys Weatherley <rhys.weatherley@nokia.com> | 2009-09-09 22:51:35 (GMT) |
---|---|---|
committer | Rhys Weatherley <rhys.weatherley@nokia.com> | 2009-09-09 22:51:35 (GMT) |
commit | 77c3beb90e848a7c38459cd149f7eba977978955 (patch) | |
tree | eb2384738261880df5ce7d0591f2423bb0eaf46f /src/opengl/qglpaintdevice.cpp | |
parent | 2196db60fa75fc559adb1405c1b43858122ff9e7 (diff) | |
download | Qt-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.cpp | 2 |
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 |