From 4aff648a99c4bb1b42a685e5f6f83077e157d56c Mon Sep 17 00:00:00 2001 From: lisyarus Date: Tue, 13 Jul 2021 11:41:39 +0300 Subject: [PATCH] Make sure embedded resources are aligned to 16 bytes --- tools/resource/compiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/resource/compiler.cpp b/tools/resource/compiler.cpp index 5ed389a0..7fed9f46 100644 --- a/tools/resource/compiler.cpp +++ b/tools/resource/compiler.cpp @@ -65,7 +65,7 @@ int main(int argc, char * argv[]) << "#include \n" << "\n"; - output_source << "static const char data[" << input_data.size() << "] = {\n"; + output_source << "alignas(16) static const char data[" << input_data.size() << "] = {\n"; for (std::size_t i = 0; i < input_data.size(); ++i) {