projects
/
tools
/
apitrace.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
83dca1f
)
Ensure that calls for traces with a single frame are shown.
author
José Fonseca
<jfonseca@vmware.com>
Thu, 1 Sep 2011 18:17:41 +0000
(19:17 +0100)
committer
José Fonseca
<jfonseca@vmware.com>
Thu, 1 Sep 2011 18:17:41 +0000
(19:17 +0100)
Otherwise we get a solitary "Frame 0" node without children.
gui/loaderthread.cpp
patch
|
blob
|
history
diff --git
a/gui/loaderthread.cpp
b/gui/loaderthread.cpp
index
f311fe0
..
03f0ccd
100644
(file)
--- a/
gui/loaderthread.cpp
+++ b/
gui/loaderthread.cpp
@@
-95,6
+95,10
@@
void LoaderThread::run()
// it's just a bunch of Delete calls for every object
// after the last SwapBuffers
if (currentFrame) {
+ if (!frames.count()) {
+ calls.squeeze();
+ currentFrame->setCalls(calls, binaryDataSize);
+ }
frames.append(currentFrame);
currentFrame = 0;
}