diff mbox

[Branch,~glmark2-dev/glmark2/trunk] Rev 190: Create a new TextRenderer each time through the loop so that it is initialized with the newly res...

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

Commit Message

Jesse Barker Jan. 18, 2012, 9:47 p.m. UTC
------------------------------------------------------------
revno: 190
committer: Jesse Barker <jesse.barker@linaro.org>
branch nick: trunk
timestamp: Wed 2012-01-18 13:44:06 -0800
message:
  Create a new TextRenderer each time through the loop so that it is initialized with the newly reset canvas.
modified:
  src/main.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/main.cpp'
--- src/main.cpp	2012-01-18 17:13:28 +0000
+++ src/main.cpp	2012-01-18 21:44:06 +0000
@@ -166,7 +166,6 @@ 
 do_benchmark(Canvas &canvas, vector<Benchmark *> &benchmarks)
 {
     static const unsigned int fps_interval = 500000;
-    TextRenderer fps_renderer(canvas);
     unsigned score = 0;
     unsigned int benchmarks_run = 0;
 
@@ -181,6 +180,7 @@ 
         Benchmark *bench = *bench_iter;
         uint64_t fps_timestamp = Util::get_timestamp_us();
         Scene &scene = bench->setup_scene();
+        TextRenderer fps_renderer(canvas);
 
         if (!scene.name().empty()) {
             Log::info("%s", scene.info_string().c_str());