From 0366c18d87f8c60ff6a99db668a7f2d810aaeeb0 Mon Sep 17 00:00:00 2001 From: Fernando Sahmkow Date: Wed, 21 Aug 2019 11:54:47 -0400 Subject: Shader_IR: mark labels as unused for partial decompile. --- src/video_core/shader/ast.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/video_core/shader/ast.cpp') 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() { } } if (can_remove) { - auto& manager = label->GetManager(); - manager.Remove(label); - labels.erase(it); + label->MarkLabelUnused(); } } } -- cgit v1.2.3