mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-10 13:06:24 +02:00
Add another missing check for VRAM address before swizzling media
This commit is contained in:
1 parent
e848247f88
commit
23004409bd
1 file changed
+1
-1
@@ -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];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user