Message ID | 20120113150714.16017.14343.launchpad@ackee.canonical.com |
---|---|
State | Accepted |
Headers | show |
=== 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; } }