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

+2 -1
View File
@@ -754,6 +754,7 @@ void FramebufferManager::SetLineWidth() {
void FramebufferManager::CopyDisplayToOutput() {
fbo_unbind();
glstate.viewport.set(0, 0, PSP_CoreParameter().pixelWidth, PSP_CoreParameter().pixelHeight);
currentRenderVfb_ = 0;
VirtualFramebuffer *vfb = GetVFBAt(displayFramebufPtr_);
@@ -769,7 +770,7 @@ void FramebufferManager::CopyDisplayToOutput() {
}
if (!vfb) {
// Just a pointer to plain memory to draw. Draw it.
// Just a pointer to plain memory to draw. Draw it. And make sure to set the viewport...
DrawPixels(Memory::GetPointer(displayFramebufPtr_), displayFormat_, displayStride_);
return;
}