From: James Benton Date: Tue, 31 Jul 2012 13:10:35 +0000 (+0100) Subject: Fixed bug in CPU profiling. X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=bdc9bb6a9dad55e932fb8b89e4452f6ecd70cdb4;p=apitrace Fixed bug in CPU profiling. --- diff --git a/retrace/glretrace_main.cpp b/retrace/glretrace_main.cpp index e3bb9d4..67cef17 100644 --- a/retrace/glretrace_main.cpp +++ b/retrace/glretrace_main.cpp @@ -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