diff options
author | Rhys Weatherley <rhys.weatherley@nokia.com> | 2009-09-13 23:18:34 (GMT) |
---|---|---|
committer | Rhys Weatherley <rhys.weatherley@nokia.com> | 2009-09-13 23:18:34 (GMT) |
commit | d622f5db9a81959227145603643a89208d77f611 (patch) | |
tree | a6cb9f90c74efc044877ab119fc2b3126c194d89 | |
parent | f393ae6dd4cc8e40c5b97c18efe7862253bc2bdd (diff) | |
download | Qt-d622f5db9a81959227145603643a89208d77f611.zip Qt-d622f5db9a81959227145603643a89208d77f611.tar.gz Qt-d622f5db9a81959227145603643a89208d77f611.tar.bz2 |
qdoc: qglColor() doesn't work under OpenGL/ES 2.0
-rw-r--r-- | src/opengl/qgl.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/opengl/qgl.cpp b/src/opengl/qgl.cpp index fcb3510..f388cd5 100644 --- a/src/opengl/qgl.cpp +++ b/src/opengl/qgl.cpp @@ -3970,6 +3970,8 @@ void QGLWidget::glDraw() Calls glColor4 (in RGBA mode) or glIndex (in color-index mode) with the color \a c. Applies to this widgets GL context. + \note This function is not supported on OpenGL/ES 2.0 systems. + \sa qglClearColor(), QGLContext::currentContext(), QColor */ @@ -3993,6 +3995,8 @@ void QGLWidget::qglColor(const QColor& c) const glIndexi(ctx->colorIndex(c)); } #endif //QT_OPENGL_ES +#else + Q_UNUSED(c); #endif //QT_OPENGL_ES_2 } |