Symbian: Over allocate VRAM (x4) in attempt to solve crash caused by 0.9.8-601. This brings allocation to the same as before the commit. See #6103

This commit is contained in:
Sacha 2014-05-28 01:52:38 +10:00
parent 95003cb77d
commit f94f28fb4a
2 changed files with 6 additions and 2 deletions

View File

@ -297,6 +297,10 @@ static bool Memory_TryBase(u8 *base, const MemoryView *views, int num_views, u32
} else {
#ifdef __SYMBIAN32__
*(view.out_ptr_low) = (u8*)((int)arena->memmap->Base() + view.virtual_address);
// Over allocate VRAM to span the mirrors. Hopefully resolves crash.
if (i == 2)
arena->memmap->Commit(view.virtual_address & 0x3FFFFFFF, view.size * 4);
else
arena->memmap->Commit(view.virtual_address & 0x3FFFFFFF, view.size);
}
*(view.out_ptr) = (u8*)((int)arena->memmap->Base() + view.virtual_address & 0x3FFFFFFF);