diff mbox

[Branch,~glmark2-dev/glmark2/trunk] Rev 31: Don't try to start the next part of the scene if the scene is finished!

Message ID 20110721123632.17019.33434.launchpad@loganberry.canonical.com
State Accepted
Headers show

Commit Message

Alexandros Frantzis July 21, 2011, 12:36 p.m. UTC
------------------------------------------------------------
revno: 31
committer: Alexandros Frantzis <alf82@freemail.gr>
timestamp: Fri 2010-07-09 15:16:42 +0300
message:
  Don't try to start the next part of the scene if the scene is finished!
modified:
  scenebuild.cpp
  sceneshading.cpp
  scenetexture.cpp


--
lp:glmark2
https://code.launchpad.net/~glmark2-dev/glmark2/trunk

You are subscribed to branch lp:glmark2.
To unsubscribe from this branch go to https://code.launchpad.net/~glmark2-dev/glmark2/trunk/+edit-subscription
diff mbox

Patch

=== modified file 'scenebuild.cpp'
--- scenebuild.cpp	2010-07-09 12:11:52 +0000
+++ scenebuild.cpp	2010-07-09 12:16:42 +0000
@@ -94,9 +94,10 @@ 
             break;
         }
         mCurrentPart++;
-        start();
         if(mCurrentPart >= mPartsQty)
             mRunning = false;
+        else
+            start();
     }
     
     mRotation += mRotationSpeed * mDt;

=== modified file 'sceneshading.cpp'
--- sceneshading.cpp	2010-07-09 12:11:52 +0000
+++ sceneshading.cpp	2010-07-09 12:16:42 +0000
@@ -126,9 +126,10 @@ 
             break;
         }
         mCurrentPart++;
-        start();
         if(mCurrentPart >= mPartsQty)
             mRunning = false;
+        else
+            start();
     }
     
     mRotation += mRotationSpeed * mDt;

=== modified file 'scenetexture.cpp'
--- scenetexture.cpp	2010-07-09 12:11:52 +0000
+++ scenetexture.cpp	2010-07-09 12:16:42 +0000
@@ -94,9 +94,10 @@ 
             break;
         }
         mCurrentPart++;
-        start();
         if(mCurrentPart >= mPartsQty)
             mRunning = false;
+        else
+            start();
     }
     
     mRotation += mRotationSpeed * mDt;