Fix render resolution race condition. Should help #8002

This commit is contained in:
Henrik Rydgard committed 2015-09-27 20:00:47 +02:00
1 parent 89513a35cc
commit d3b265a3e4
4 files changed
+17 -11

No files matched your search

+5 -1
View File
@@ -1659,8 +1659,10 @@ void ShowScreenResolution();
void FramebufferManager::EndFrame() {
if (resized_) {
// TODO: Only do this if the new size actually changed the renderwidth/height.
DestroyAllFBOs();
glstate.viewport.set(0, 0, pixelWidth_, pixelHeight_);
// Probably not necessary
glstate.viewport.set(0, 0, PSP_CoreParameter().pixelWidth, PSP_CoreParameter().pixelHeight);
// Actually, auto mode should be more granular...
// Round up to a zoom factor for the render size.
@@ -1684,6 +1686,8 @@ void FramebufferManager::EndFrame() {
PSP_CoreParameter().renderHeight = 272 * zoom;
}
UpdateSize();
resized_ = false;
#ifdef _WIN32
ShowScreenResolution();