mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-11 01:25:07 +02:00
Fix order of operations when clearing JitBlockCaches.
This commit is contained in:
@@ -120,10 +120,11 @@ void JitBlockCache::Shutdown() {
|
||||
// This clears the JIT cache. It's called from JitCache.cpp when the JIT cache
|
||||
// is full and when saving and loading states.
|
||||
void JitBlockCache::Clear() {
|
||||
for (int i = 0; i < num_blocks_; i++) {
|
||||
DestroyBlock(i, DestroyType::CLEAR);
|
||||
}
|
||||
block_map_.clear();
|
||||
proxyBlockMap_.clear();
|
||||
for (int i = 0; i < num_blocks_; i++)
|
||||
DestroyBlock(i, DestroyType::CLEAR);
|
||||
links_to_.clear();
|
||||
num_blocks_ = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user