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:
77ff98a
)
nasty hack, but for now we need to keep the pointers
author
Zack Rusin
<zack@kde.org>
Mon, 29 Aug 2011 03:28:05 +0000
(23:28 -0400)
committer
Zack Rusin
<zack@kde.org>
Mon, 29 Aug 2011 03:28:05 +0000
(23:28 -0400)
otherwise if we try to print the vertex/texture data we'll crash
gui/apitracecall.cpp
patch
|
blob
|
history
diff --git
a/gui/apitracecall.cpp
b/gui/apitracecall.cpp
index
58d5d72
..
bd30aaa
100644
(file)
--- a/
gui/apitracecall.cpp
+++ b/
gui/apitracecall.cpp
@@
-215,6
+215,7
@@
void VariantVisitor::visit(Trace::Blob *blob)
// Blob's will start deleting the data we will need to
// start deep copying it or switch to using something like
// Boost's shared_ptr or Qt's QSharedPointer to handle it
+ blob->toPointer(true);
QByteArray barray = QByteArray::fromRawData(blob->buf, blob->size);
m_variant = QVariant(barray);
}