Add another missing check for VRAM address before swizzling media

This commit is contained in:
Henrik Rydgard 2015-06-14 14:03:45 +02:00
parent e848247f88
commit 23004409bd

View file

@ -721,7 +721,7 @@ int MediaEngine::writeVideoImageWithRange(u32 bufferPtr, int frameWidth, int vid
}
int videoImageSize = videoLineSize * height;
bool swizzle = (bufferPtr & 0x00200000) == 0x00200000;
bool swizzle = Memory::IsVRAMAddress(bufferPtr) && (bufferPtr & 0x00200000) == 0x00200000;
if (swizzle) {
imgbuf = new u8[videoImageSize];
}