diff options
author | Tom Cooksey <thomas.cooksey@nokia.com> | 2009-12-17 13:34:16 (GMT) |
---|---|---|
committer | Tom Cooksey <thomas.cooksey@nokia.com> | 2009-12-17 14:52:11 (GMT) |
commit | ca30ced65ead8e81dfcb25178f4bfb6244487356 (patch) | |
tree | 8640fbed5ca182e7cf222a164457cc9d3635773d /src/opengl/gl2paintengineex/qglengineshadermanager.cpp | |
parent | 7698c6d25fb1e017a84ec67c08eb4c3dc3568515 (diff) | |
download | Qt-ca30ced65ead8e81dfcb25178f4bfb6244487356.zip Qt-ca30ced65ead8e81dfcb25178f4bfb6244487356.tar.gz Qt-ca30ced65ead8e81dfcb25178f4bfb6244487356.tar.bz2 |
GL2Engine: Don't mark brush as dirty if it hasn't changed
If the same brush is used over and over again, this gives a
huge performance boost (measured to be 25% faster on desktop
and 73% faster on SGX).
Reviewed-By: Samuel Rødal
Diffstat (limited to 'src/opengl/gl2paintengineex/qglengineshadermanager.cpp')
-rw-r--r-- | src/opengl/gl2paintengineex/qglengineshadermanager.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/opengl/gl2paintengineex/qglengineshadermanager.cpp b/src/opengl/gl2paintengineex/qglengineshadermanager.cpp index 8a8f483..1187c2d 100644 --- a/src/opengl/gl2paintengineex/qglengineshadermanager.cpp +++ b/src/opengl/gl2paintengineex/qglengineshadermanager.cpp @@ -406,6 +406,7 @@ void QGLEngineShaderManager::setDirty() void QGLEngineShaderManager::setSrcPixelType(Qt::BrushStyle style) { + Q_ASSERT(style != Qt::NoBrush); if (srcPixelType == PixelSrcType(style)) return; |