From bdc9bb6a9dad55e932fb8b89e4452f6ecd70cdb4 Mon Sep 17 00:00:00 2001 From: James Benton Date: Tue, 31 Jul 2012 14:10:35 +0100 Subject: [PATCH] Fixed bug in CPU profiling. --- retrace/glretrace_main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.45.2