diff options
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 14c50e1c68..74b9a8f9a9 100644 --- a/src/video_core/shader/ast.cpp +++ b/src/video_core/shader/ast.cpp @@ -497,9 +497,7 @@ void ASTManager::Decompile() { } } if (can_remove) { - auto& manager = label->GetManager(); - manager.Remove(label); - labels.erase(it); + label->MarkLabelUnused(); } } } |