]> git.cworth.org Git - apitrace/commitdiff
Fixed bug in CPU profiling.
authorJames Benton <jbenton@vmware.com>
Tue, 31 Jul 2012 13:10:35 +0000 (14:10 +0100)
committerJames Benton <jbenton@vmware.com>
Thu, 2 Aug 2012 10:39:29 +0000 (11:39 +0100)
retrace/glretrace_main.cpp

index e3bb9d42ec8b2c346bb9c35bd529eb846d24c13e..67cef173f8123fe0fa860f6473f820ec834084dd 100644 (file)
@@ -203,11 +203,11 @@ beginProfile(trace::Call &call) {
         glBeginQuery(GL_SAMPLES_PASSED, query.ids[2]);
     }
 
-    callQueries.push_back(query);
-
     if (retrace::profilingCpuTimes) {
         query.start = os::getTime();
     }
+
+    callQueries.push_back(query);
 }
 
 void