temp: Comment out protect

This commit is contained in:
IndecisiveTurtle 2024-07-26 15:15:38 +03:00
parent a76828399c
commit c869f0df0b
1 changed files with 2 additions and 2 deletions

View File

@ -421,9 +421,9 @@ void TextureCache::UpdatePagesCachedCount(VAddr addr, u64 size, s32 delta) {
const u32 interval_size = interval_end_addr - interval_start_addr;
void* addr = reinterpret_cast<void*>(interval_start_addr);
if (delta > 0 && count == delta) {
mprotect(addr, interval_size, PAGE_READONLY);
//mprotect(addr, interval_size, PAGE_READONLY);
} else if (delta < 0 && count == -delta) {
mprotect(addr, interval_size, PAGE_READWRITE);
//mprotect(addr, interval_size, PAGE_READWRITE);
} else {
ASSERT(count >= 0);
}