diff --git a/renderdoc/api/replay/rdcarray.h b/renderdoc/api/replay/rdcarray.h index f86dfb509..cb46f9dbf 100644 --- a/renderdoc/api/replay/rdcarray.h +++ b/renderdoc/api/replay/rdcarray.h @@ -931,9 +931,6 @@ struct bytebuf : public rdcarray 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 };