mirror of
https://github.com/libretro/ppsspp.git
synced 2024-11-23 16:19:44 +00:00
Fix crashes in android when setting buffered rendering before starting the game.
This commit is contained in:
parent
4474adee1d
commit
1b1252b9ed
@ -315,12 +315,14 @@ void SettingsScreen::render() {
|
||||
int stride = 40;
|
||||
UICheckBox(GEN_ID, x, y += stride, "Sound Emulation", ALIGN_TOPLEFT, &g_Config.bEnableSound);
|
||||
if (UICheckBox(GEN_ID, x, y += stride, "Buffered Rendering", ALIGN_TOPLEFT, &g_Config.bBufferedRendering)) {
|
||||
gpu->Resized();
|
||||
if (gpu)
|
||||
gpu->Resized();
|
||||
}
|
||||
if (g_Config.bBufferedRendering) {
|
||||
bool doubleRes = g_Config.iWindowZoom == 2;
|
||||
if (UICheckBox(GEN_ID, x + 50, y += stride, "2x Render Resolution", ALIGN_TOPLEFT, &doubleRes)) {
|
||||
gpu->Resized();
|
||||
if (gpu)
|
||||
gpu->Resized();
|
||||
}
|
||||
g_Config.iWindowZoom = doubleRes ? 2 : 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user