diff options
author | Jose Fonseca <jfonseca@vmware.com> | 2015-01-26 00:04:31 +0000 |
---|---|---|
committer | Jose Fonseca <jfonseca@vmware.com> | 2015-01-26 00:05:44 +0000 |
commit | 7055008a8ab44b5217af79dcf86ad5e2586356d9 (patch) | |
tree | 6e8ad10125ee6a162d39d7f62267836d74afd819 /retrace/retrace_main.cpp | |
parent | 05baa465f008e92cdf4db74d62f1e3885e3ee73d (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.cpp | 3 |
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) |