summaryrefslogtreecommitdiffstats
path: root/src/video_core/shader/ast.cpp
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2019-08-21 17:54:47 +0200
committerFernandoS27 <fsahmkow27@gmail.com>2019-10-05 00:52:51 +0200
commit0366c18d87f8c60ff6a99db668a7f2d810aaeeb0 (patch)
treefa1731f7cb9285ffe40f789447b528262edd618f /src/video_core/shader/ast.cpp
parentShader_Ir: Refactor Decompilation process and allow multiple decompilation modes. (diff)
downloadyuzu-0366c18d87f8c60ff6a99db668a7f2d810aaeeb0.tar
yuzu-0366c18d87f8c60ff6a99db668a7f2d810aaeeb0.tar.gz
yuzu-0366c18d87f8c60ff6a99db668a7f2d810aaeeb0.tar.bz2
yuzu-0366c18d87f8c60ff6a99db668a7f2d810aaeeb0.tar.lz
yuzu-0366c18d87f8c60ff6a99db668a7f2d810aaeeb0.tar.xz
yuzu-0366c18d87f8c60ff6a99db668a7f2d810aaeeb0.tar.zst
yuzu-0366c18d87f8c60ff6a99db668a7f2d810aaeeb0.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/shader/ast.cpp4
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() {
}
}
if (can_remove) {
- auto& manager = label->GetManager();
- manager.Remove(label);
- labels.erase(it);
+ label->MarkLabelUnused();
}
}
}