diff options
author | Mai M <mathew1800@gmail.com> | 2022-04-28 23:28:07 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-28 23:28:07 -0400 |
commit | 5687bc6e103d47d5ddf1ac4380a939f1287bdb31 (patch) | |
tree | 9eac623466c034656b87ae866b73cfba1bf3a925 /src/video_core | |
parent | f3128fe915219a3564be366d3ab0c317422f0fc5 (diff) | |
parent | 709d7fd92c948dcf44897362d353d540abb38a1f (diff) |
Merge pull request #8282 from liamwhite/gcc-12
GCC 12 fixes
Diffstat (limited to 'src/video_core')
-rw-r--r-- | src/video_core/shader_environment.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/shader_environment.cpp b/src/video_core/shader_environment.cpp index a558f8deb..d469964f6 100644 --- a/src/video_core/shader_environment.cpp +++ b/src/video_core/shader_environment.cpp @@ -188,11 +188,11 @@ void GenericEnvironment::Serialize(std::ofstream& file) const { .write(reinterpret_cast<const char*>(&cached_highest), sizeof(cached_highest)) .write(reinterpret_cast<const char*>(&stage), sizeof(stage)) .write(reinterpret_cast<const char*>(code.data()), code_size); - for (const auto [key, type] : texture_types) { + for (const auto& [key, type] : texture_types) { file.write(reinterpret_cast<const char*>(&key), sizeof(key)) .write(reinterpret_cast<const char*>(&type), sizeof(type)); } - for (const auto [key, type] : cbuf_values) { + for (const auto& [key, type] : cbuf_values) { file.write(reinterpret_cast<const char*>(&key), sizeof(key)) .write(reinterpret_cast<const char*>(&type), sizeof(type)); } |