Reset viewport in CopyDisplayToOutput. Fixes flickering video in non-1:1 resolutions in some games.

This commit is contained in:
Henrik Rydgard committed 2013-10-22 11:19:06 +02:00
1 parent de39a81dce
commit 492fcb261b
2 files changed
+3 -2

No files matched your search

+1 -1
View File
@@ -1517,7 +1517,7 @@ void GLES_GPU::DoBlockTransfer() {
return;
}
// Do the copy!
// Do the copy! (Hm, if we detect a drawn video frame (see below) then we could maybe skip this?)
for (int y = 0; y < height; y++) {
const u8 *src = Memory::GetPointer(srcBasePtr + ((y + srcY) * srcStride + srcX) * bpp);
u8 *dst = Memory::GetPointer(dstBasePtr + ((y + dstY) * dstStride + dstX) * bpp);