diff options
author | Samuel Rødal <sroedal@trolltech.com> | 2009-06-18 10:10:12 (GMT) |
---|---|---|
committer | Samuel Rødal <sroedal@trolltech.com> | 2009-06-18 11:19:33 (GMT) |
commit | c23d4d6644bff2195fbb6aa84d3425dc2d31491a (patch) | |
tree | 970980e9abfeef24567b1423b81bdd46ad351aaa /src/opengl/qpaintengine_opengl_p.h | |
parent | b11eb293ca873691e4a84afdf4e89ecf16ed03b1 (diff) | |
download | Qt-c23d4d6644bff2195fbb6aa84d3425dc2d31491a.zip Qt-c23d4d6644bff2195fbb6aa84d3425dc2d31491a.tar.gz Qt-c23d4d6644bff2195fbb6aa84d3425dc2d31491a.tar.bz2 |
Prevented unnecessary depth clip updates in OpenGL paint engine.
Keep track of whether the depth clip has actually changed between
states, so that when QPainter::restore() is called we don't call the
potentially expensive updateDepthClip() function when not needed.
Task-number: 254658
Reviewed-by: Trond
Diffstat (limited to 'src/opengl/qpaintengine_opengl_p.h')
-rw-r--r-- | src/opengl/qpaintengine_opengl_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/opengl/qpaintengine_opengl_p.h b/src/opengl/qpaintengine_opengl_p.h index 891cbd6..439782b 100644 --- a/src/opengl/qpaintengine_opengl_p.h +++ b/src/opengl/qpaintengine_opengl_p.h @@ -69,6 +69,7 @@ public: QRegion clipRegion; bool hasClipping; QRect fastClip; + uint depthClipId; }; class QOpenGLPaintEngine : public QPaintEngineEx |