mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-12 21:10:42 +00:00
Fix incorrect use of QByteArray::fromRawData, it doesn't copy input data
This commit is contained in:
@@ -931,9 +931,6 @@ struct bytebuf : public rdcarray<byte>
|
||||
resize(in.size());
|
||||
memcpy(elems, in.data(), (size_t)in.size());
|
||||
}
|
||||
operator QByteArray() const
|
||||
{
|
||||
return QByteArray::fromRawData((const char *)elems, (int32_t)usedCount);
|
||||
}
|
||||
operator QByteArray() const { return QByteArray((const char *)elems, (int32_t)usedCount); }
|
||||
#endif
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user