summaryrefslogtreecommitdiffstats
path: root/src/opengl
diff options
context:
space:
mode:
authorSamuel Rødal <sroedal@trolltech.com>2009-10-02 10:38:16 (GMT)
committerSamuel Rødal <sroedal@trolltech.com>2009-10-06 13:19:20 (GMT)
commit283670c8fbdda2898879066c7e14d3b0cb5ef442 (patch)
treeabbd44ee08bc7f9a0177113f6e510bd615046537 /src/opengl
parent971adae01406f71ed9f0bb9cb2be5eddc259e77e (diff)
downloadQt-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
Diffstat (limited to 'src/opengl')
-rw-r--r--src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp2
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;
}