diff options
author | Kim Motoyoshi Kalland <kim.kalland@nokia.com> | 2010-02-02 09:18:15 (GMT) |
---|---|---|
committer | Kim Motoyoshi Kalland <kim.kalland@nokia.com> | 2010-02-02 09:18:15 (GMT) |
commit | 787824cb4add4d45a0e90fd736a54e75fa048475 (patch) | |
tree | d06fc6bbc26a450d2ff322bf989532934aa0351e | |
parent | 0d3159120674ae8fd8f941d104cf03120305b4dc (diff) | |
download | Qt-787824cb4add4d45a0e90fd736a54e75fa048475.zip Qt-787824cb4add4d45a0e90fd736a54e75fa048475.tar.gz Qt-787824cb4add4d45a0e90fd736a54e75fa048475.tar.bz2 |
Fixed missing textures in the boxes demo.
The boxes demo assumed that the current GL colour was the default white,
but the GL2 paint engine set it to black. Fixed by resetting the colour
to white in resetGLState().
Task-number: QTBUG-7779
Reviewed-by: Trond
-rw-r--r-- | src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp b/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp index 35e95be..406112a 100644 --- a/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp +++ b/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp @@ -561,6 +561,7 @@ void QGL2PaintEngineExPrivate::resetGLState() glDisableVertexAttribArray(QT_TEXTURE_COORDS_ATTR); glDisableVertexAttribArray(QT_VERTEX_COORDS_ATTR); glDisableVertexAttribArray(QT_OPACITY_ATTR); + glColor4f(1.0f, 1.0f, 1.0f, 1.0f); // color may have been changed by glVertexAttrib() } void QGL2PaintEngineEx::endNativePainting() |