diff options
author | Kim Motoyoshi Kalland <kim.kalland@nokia.com> | 2010-02-02 12:20:10 (GMT) |
---|---|---|
committer | Kim Motoyoshi Kalland <kim.kalland@nokia.com> | 2010-02-02 12:24:51 (GMT) |
commit | 88c4000c21be7af37bc490a2edd9d1f481b3a862 (patch) | |
tree | d4365e1def590c976975af92462048016cb1d7d1 /src/opengl | |
parent | db5f673ccf5a56772ff83cad52beab7b14cd9520 (diff) | |
download | Qt-88c4000c21be7af37bc490a2edd9d1f481b3a862.zip Qt-88c4000c21be7af37bc490a2edd9d1f481b3a862.tar.gz Qt-88c4000c21be7af37bc490a2edd9d1f481b3a862.tar.bz2 |
Fixed compilation of the GL2 engine for OpenGL ES 2.
glColor4f is not defined in OpenGL ES 2.
Reviewed-by: Trond
Diffstat (limited to 'src/opengl')
-rw-r--r-- | src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp b/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp index 406112a..07f3159 100644 --- a/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp +++ b/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp @@ -561,7 +561,9 @@ void QGL2PaintEngineExPrivate::resetGLState() glDisableVertexAttribArray(QT_TEXTURE_COORDS_ATTR); glDisableVertexAttribArray(QT_VERTEX_COORDS_ATTR); glDisableVertexAttribArray(QT_OPACITY_ATTR); +#ifndef QT_OPENGL_ES_2 glColor4f(1.0f, 1.0f, 1.0f, 1.0f); // color may have been changed by glVertexAttrib() +#endif } void QGL2PaintEngineEx::endNativePainting() |