diff options
| author | 2019-08-21 11:54:47 -0400 | |
|---|---|---|
| committer | 2019-10-04 18:52:51 -0400 | |
| commit | 0366c18d87f8c60ff6a99db668a7f2d810aaeeb0 (patch) | |
| tree | fa1731f7cb9285ffe40f789447b528262edd618f /src/video_core/shader/ast.cpp | |
| parent | Shader_Ir: Refactor Decompilation process and allow multiple decompilation mo... (diff) | |
| download | yuzu-0366c18d87f8c60ff6a99db668a7f2d810aaeeb0.tar.gz yuzu-0366c18d87f8c60ff6a99db668a7f2d810aaeeb0.tar.xz yuzu-0366c18d87f8c60ff6a99db668a7f2d810aaeeb0.zip | |
Shader_IR: mark labels as unused for partial decompile.
Diffstat (limited to 'src/video_core/shader/ast.cpp')
| -rw-r--r-- | src/video_core/shader/ast.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/video_core/shader/ast.cpp b/src/video_core/shader/ast.cpp index 14c50e1c6..74b9a8f9a 100644 --- a/src/video_core/shader/ast.cpp +++ b/src/video_core/shader/ast.cpp | |||
| @@ -497,9 +497,7 @@ void ASTManager::Decompile() { | |||
| 497 | } | 497 | } |
| 498 | } | 498 | } |
| 499 | if (can_remove) { | 499 | if (can_remove) { |
| 500 | auto& manager = label->GetManager(); | 500 | label->MarkLabelUnused(); |
| 501 | manager.Remove(label); | ||
| 502 | labels.erase(it); | ||
| 503 | } | 501 | } |
| 504 | } | 502 | } |
| 505 | } | 503 | } |