diff options
| author | 2022-04-28 13:22:34 -0400 | |
|---|---|---|
| committer | 2022-04-28 16:50:34 -0400 | |
| commit | 709d7fd92c948dcf44897362d353d540abb38a1f (patch) | |
| tree | 46fd44db803df394798c89bcebc73e8f71fc6bfd /src/video_core/shader_environment.cpp | |
| parent | Merge pull request #8260 from Morph1984/c4146 (diff) | |
| download | yuzu-709d7fd92c948dcf44897362d353d540abb38a1f.tar.gz yuzu-709d7fd92c948dcf44897362d353d540abb38a1f.tar.xz yuzu-709d7fd92c948dcf44897362d353d540abb38a1f.zip | |
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 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 { | |||
| 188 | .write(reinterpret_cast<const char*>(&cached_highest), sizeof(cached_highest)) | 188 | .write(reinterpret_cast<const char*>(&cached_highest), sizeof(cached_highest)) |
| 189 | .write(reinterpret_cast<const char*>(&stage), sizeof(stage)) | 189 | .write(reinterpret_cast<const char*>(&stage), sizeof(stage)) |
| 190 | .write(reinterpret_cast<const char*>(code.data()), code_size); | 190 | .write(reinterpret_cast<const char*>(code.data()), code_size); |
| 191 | for (const auto [key, type] : texture_types) { | 191 | for (const auto& [key, type] : texture_types) { |
| 192 | file.write(reinterpret_cast<const char*>(&key), sizeof(key)) | 192 | file.write(reinterpret_cast<const char*>(&key), sizeof(key)) |
| 193 | .write(reinterpret_cast<const char*>(&type), sizeof(type)); | 193 | .write(reinterpret_cast<const char*>(&type), sizeof(type)); |
| 194 | } | 194 | } |
| 195 | for (const auto [key, type] : cbuf_values) { | 195 | for (const auto& [key, type] : cbuf_values) { |
| 196 | file.write(reinterpret_cast<const char*>(&key), sizeof(key)) | 196 | file.write(reinterpret_cast<const char*>(&key), sizeof(key)) |
| 197 | .write(reinterpret_cast<const char*>(&type), sizeof(type)); | 197 | .write(reinterpret_cast<const char*>(&type), sizeof(type)); |
| 198 | } | 198 | } |