mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-16 02:59:49 +01:00
Fix render resolution race condition. Should help #8002
This commit is contained in:
1 parent
89513a35cc
commit
d3b265a3e4
4 files changed
+17
-11
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user