texture corruption resulting from misaligned page unprotection

This commit is contained in:
Flyinghead 2019-06-21 23:31:45 +02:00
parent 49b49c5207
commit 862d892e89
1 changed files with 1 additions and 1 deletions

View File

@ -244,7 +244,7 @@ bool VramLockedWriteOffset(size_t offset)
}
list->clear();
_vmem_unprotect_vram((u32)offset, PAGE_SIZE);
_vmem_unprotect_vram((u32)(offset & ~PAGE_MASK), PAGE_SIZE);
vramlist_lock.Unlock();
}