diff options
author | Samuel Rødal <sroedal@trolltech.com> | 2009-10-02 10:38:16 (GMT) |
---|---|---|
committer | Samuel Rødal <sroedal@trolltech.com> | 2009-10-06 13:19:20 (GMT) |
commit | 283670c8fbdda2898879066c7e14d3b0cb5ef442 (patch) | |
tree | abbd44ee08bc7f9a0177113f6e510bd615046537 | |
parent | 971adae01406f71ed9f0bb9cb2be5eddc259e77e (diff) | |
download | Qt-283670c8fbdda2898879066c7e14d3b0cb5ef442.zip Qt-283670c8fbdda2898879066c7e14d3b0cb5ef442.tar.gz Qt-283670c8fbdda2898879066c7e14d3b0cb5ef442.tar.bz2 |
Fixed bug in GL 2 engine when using beginNativePainting.
Need to set shader manager to dirty in case we change the shader program
using native calls.
Reviewed-by: Trond
-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 073f7db..7cd5aa4 100644 --- a/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp +++ b/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp @@ -762,6 +762,8 @@ void QGL2PaintEngineEx::beginNativePainting() d->dirtyStencilRegion = QRect(0, 0, d->width, d->height); d->resetGLState(); + d->shaderManager->setDirty(); + d->needsSync = true; } |