Message ID | 20120113150714.16017.94718.launchpad@ackee.canonical.com |
---|---|
State | Accepted |
Headers | show |
=== modified file 'src/android.cpp' --- src/android.cpp 2012-01-13 14:03:23 +0000 +++ src/android.cpp 2012-01-13 14:05:54 +0000 @@ -100,10 +100,15 @@ static unsigned int benchmarks_run = 0; if (!scene) { - if (bench_iter != g_benchmarks.end()) { + /* Find the next normal scene */ + while (bench_iter != g_benchmarks.end()) { scene = &(*bench_iter)->setup_scene(); + if (!scene->name().empty()) + break; + bench_iter++; } - else { + + if (bench_iter == g_benchmarks.end()) { if (benchmarks_run) score /= benchmarks_run; Log::info("glmark2 Score: %u\n", score);