summaryrefslogtreecommitdiff
path: root/retrace/retrace_main.cpp
diff options
context:
space:
mode:
authorJose Fonseca <jfonseca@vmware.com>2015-01-26 00:04:31 +0000
committerJose Fonseca <jfonseca@vmware.com>2015-01-26 00:05:44 +0000
commit7055008a8ab44b5217af79dcf86ad5e2586356d9 (patch)
tree6e8ad10125ee6a162d39d7f62267836d74afd819 /retrace/retrace_main.cpp
parent05baa465f008e92cdf4db74d62f1e3885e3ee73d (diff)
glretrace: Assign callNo earlier.
So that GL debug messages while dumping snapshot get the right call no.
Diffstat (limited to 'retrace/retrace_main.cpp')
-rw-r--r--retrace/retrace_main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/retrace/retrace_main.cpp b/retrace/retrace_main.cpp
index cd378269..1976221a 100644
--- a/retrace/retrace_main.cpp
+++ b/retrace/retrace_main.cpp
@@ -185,6 +185,8 @@ takeSnapshot(unsigned call_no) {
*/
static void
retraceCall(trace::Call *call) {
+ callNo = call->no;
+
bool swapRenderTarget = call->flags &
trace::CALL_FLAG_SWAP_RENDERTARGET;
bool doSnapshot = snapshotFrequency.contains(*call);
@@ -203,7 +205,6 @@ retraceCall(trace::Call *call) {
}
}
- callNo = call->no;
retracer.retrace(*call);
if (doSnapshot && !swapRenderTarget)