From 2ef47b0bed0e42afe2014c5919cdf1998737f7ca Mon Sep 17 00:00:00 2001 From: ksuprynowicz Date: Sat, 25 Dec 2021 18:25:13 +0100 Subject: [PATCH] Fixed memcpy in loadSpirvResource --- libraries/shaders/src/shaders/Shaders.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/shaders/src/shaders/Shaders.cpp b/libraries/shaders/src/shaders/Shaders.cpp index 9964b1a1ed..f98b82ee22 100644 --- a/libraries/shaders/src/shaders/Shaders.cpp +++ b/libraries/shaders/src/shaders/Shaders.cpp @@ -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;