diff mbox

[Branch,~glmark2-dev/glmark2/trunk] Rev 182: Android: Reset the rendering state when finishing.

Message ID 20120113150714.16017.14343.launchpad@ackee.canonical.com
State Accepted
Headers show

Commit Message

alexandros.frantzis@linaro.org Jan. 13, 2012, 3:07 p.m. UTC
------------------------------------------------------------
revno: 182
committer: Alexandros Frantzis <alexandros.frantzis@linaro.org>
branch nick: trunk
timestamp: Fri 2012-01-13 16:11:42 +0200
message:
  Android: Reset the rendering state when finishing.
modified:
  src/android.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 'src/android.cpp'
--- src/android.cpp	2012-01-13 14:05:54 +0000
+++ src/android.cpp	2012-01-13 14:11:42 +0000
@@ -112,6 +112,10 @@ 
             if (benchmarks_run)
                 score /= benchmarks_run;
             Log::info("glmark2 Score: %u\n", score);
+            /* Reset the rendering state, in case we get called again */
+            bench_iter = g_benchmarks.begin();
+            score = 0;
+            benchmarks_run = 0;
             return false;
         }
     }