Fixed memcpy in loadSpirvResource

This commit is contained in:
ksuprynowicz 2021-12-25 18:25:13 +01:00
parent 0026abaa17
commit 2ef47b0bed

View file

@ -96,7 +96,7 @@ static Binary loadSpirvResource(const std::string& path) {
if (file.open(QFile::ReadOnly)) {
QByteArray bytes = file.readAll();
result.resize(bytes.size());
memcpy(bytes.data(), result.data(), bytes.size());
memcpy(result.data(), bytes.data(), bytes.size());
}
}
return result;