mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 17:23:40 +01:00
Merge pull request #16409 from hrydgard/preserve-framebuffers
Preserve framebuffer on pause screen even if render resolution is changed
This commit is contained in:
30 files changed
+165
-151
No files matched your search
+4
-4
@@ -661,7 +661,7 @@ void EmuScreen::onVKeyDown(int virtualKeyCode) {
|
||||
if (g_Config.bDumpFrames == g_Config.bDumpAudio) {
|
||||
g_Config.bDumpFrames = !g_Config.bDumpFrames;
|
||||
g_Config.bDumpAudio = !g_Config.bDumpAudio;
|
||||
} else {
|
||||
} else {
|
||||
// This hotkey should always toggle both audio and video together.
|
||||
// So let's make sure that's the only outcome even if video OR audio was already being dumped.
|
||||
if (g_Config.bDumpFrames) {
|
||||
@@ -706,7 +706,7 @@ void EmuScreen::onVKeyDown(int virtualKeyCode) {
|
||||
g_Config.bSaveNewTextures = !g_Config.bSaveNewTextures;
|
||||
if (g_Config.bSaveNewTextures) {
|
||||
osm.Show(sc->T("saveNewTextures_true", "Textures will now be saved to your storage"), 2.0);
|
||||
NativeMessageReceived("gpu_clearCache", "");
|
||||
NativeMessageReceived("gpu_configChanged", "");
|
||||
} else {
|
||||
osm.Show(sc->T("saveNewTextures_false", "Texture saving was disabled"), 2.0);
|
||||
}
|
||||
@@ -717,7 +717,7 @@ void EmuScreen::onVKeyDown(int virtualKeyCode) {
|
||||
osm.Show(sc->T("replaceTextures_true", "Texture replacement enabled"), 2.0);
|
||||
else
|
||||
osm.Show(sc->T("replaceTextures_false", "Textures no longer are being replaced"), 2.0);
|
||||
NativeMessageReceived("gpu_clearCache", "");
|
||||
NativeMessageReceived("gpu_configChanged", "");
|
||||
break;
|
||||
case VIRTKEY_RAPID_FIRE:
|
||||
__CtrlSetRapidFire(true);
|
||||
@@ -1399,7 +1399,7 @@ void EmuScreen::render() {
|
||||
// If we're paused and PauseScreen is transparent (will only be in buffered rendering mode), we just copy display to output.
|
||||
thin3d->BindFramebufferAsRenderTarget(nullptr, { RPAction::CLEAR, RPAction::DONT_CARE, RPAction::DONT_CARE }, "EmuScreen_Paused");
|
||||
if (PSP_IsInited()) {
|
||||
gpu->CheckResized();
|
||||
gpu->CheckDisplayResized();
|
||||
gpu->CopyDisplayToOutput(true);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user