summaryrefslogtreecommitdiffstats
path: root/src/opengl/qgl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/opengl/qgl.cpp')
-rw-r--r--src/opengl/qgl.cpp4
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
}