Only polish once pr frame
authorGunnar Sletta <gunnar.sletta@nokia.com>
Thu, 8 Sep 2011 14:00:07 +0000 (16:00 +0200)
committerGunnar Sletta <gunnar.sletta@nokia.com>
Fri, 9 Sep 2011 05:59:37 +0000 (07:59 +0200)
Change-Id: I7295d0936dd220c092ed6c78b19fdf8ee3a3ce23
Reviewed-on: http://codereview.qt-project.org/4465
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Matthew Cattell <matthew.cattell@nokia.com>
src/declarative/items/qsgcanvas.cpp

index 575a828..b89a642 100644 (file)
@@ -95,7 +95,6 @@ public:
             animationDriver()->advance();
         polishItems();
         syncSceneGraph();
-        polishItems();
         makeCurrent();
         glViewport(0, 0, size.width(), size.height());
         renderSceneGraph(size);
@@ -145,7 +144,6 @@ public:
 
     bool event(QEvent *e) {
         if (e->type() == QEvent::User) {
-            polishItems();
             paint();
             return true;
         }