diff options
| author | 2020-12-07 21:55:51 -0300 | |
|---|---|---|
| committer | 2020-12-07 21:55:51 -0300 | |
| commit | 3415890dd5c6539a7c7b6e02bf7ce5df4533133c (patch) | |
| tree | d8293d5f1997e2b59d79d5bfcc629b736565ac13 /src/video_core/shader/decode.cpp | |
| parent | Merge pull request #5163 from lioncash/concat (diff) | |
| parent | video_core: Make use of ordered container contains() where applicable (diff) | |
| download | yuzu-3415890dd5c6539a7c7b6e02bf7ce5df4533133c.tar.gz yuzu-3415890dd5c6539a7c7b6e02bf7ce5df4533133c.tar.xz yuzu-3415890dd5c6539a7c7b6e02bf7ce5df4533133c.zip | |
Merge pull request #5164 from lioncash/contains
video_core: Make use of ordered container contains() where applicable
Diffstat (limited to 'src/video_core/shader/decode.cpp')
| -rw-r--r-- | src/video_core/shader/decode.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/shader/decode.cpp b/src/video_core/shader/decode.cpp index c8f4da6df..ab14c1aa3 100644 --- a/src/video_core/shader/decode.cpp +++ b/src/video_core/shader/decode.cpp | |||
| @@ -153,8 +153,8 @@ void ShaderIR::Decode() { | |||
| 153 | const auto& blocks = shader_info.blocks; | 153 | const auto& blocks = shader_info.blocks; |
| 154 | NodeBlock current_block; | 154 | NodeBlock current_block; |
| 155 | u32 current_label = static_cast<u32>(exit_branch); | 155 | u32 current_label = static_cast<u32>(exit_branch); |
| 156 | for (auto& block : blocks) { | 156 | for (const auto& block : blocks) { |
| 157 | if (shader_info.labels.count(block.start) != 0) { | 157 | if (shader_info.labels.contains(block.start)) { |
| 158 | insert_block(current_block, current_label); | 158 | insert_block(current_block, current_label); |
| 159 | current_block.clear(); | 159 | current_block.clear(); |
| 160 | current_label = block.start; | 160 | current_label = block.start; |