diff options
| author | Liam <byteslice@airmail.cc> | 2022-04-28 13:22:34 -0400 |
|---|---|---|
| committer | Liam <byteslice@airmail.cc> | 2022-04-28 16:50:34 -0400 |
| commit | ee4d63cee5bb3ac4e00358d12fc327d7926e15fe (patch) | |
| tree | 46fd44db803df394798c89bcebc73e8f71fc6bfd /src/video_core/shader_environment.cpp | |
| parent | 5e44c82cb7435c90d8ca382ba301e52e504d6e03 (diff) | |
GCC 12 fixes
Diffstat (limited to 'src/video_core/shader_environment.cpp')
| -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 a558f8debe..d469964f6f 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)); } |
