mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 01:50:12 +02:00
Fixed memcpy in loadSpirvResource
This commit is contained in:
parent
0026abaa17
commit
2ef47b0bed
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@ static Binary loadSpirvResource(const std::string& path) {
|
||||||
if (file.open(QFile::ReadOnly)) {
|
if (file.open(QFile::ReadOnly)) {
|
||||||
QByteArray bytes = file.readAll();
|
QByteArray bytes = file.readAll();
|
||||||
result.resize(bytes.size());
|
result.resize(bytes.size());
|
||||||
memcpy(bytes.data(), result.data(), bytes.size());
|
memcpy(result.data(), bytes.data(), bytes.size());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
|
Loading…
Reference in a new issue