mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-27 16:23:35 +01:00
Android: Add both a lost and restore phase.
Lost = delete, restore = create. Let's stick to never overlapping. May help #8912.
This commit is contained in:
1 parent
29f5763d32
commit
92d930887f
23 files changed
+109
-10
No files matched your search
+6
-1
@@ -808,11 +808,16 @@ void NativeUpdate(InputState &input) {
|
||||
screenManager->update(input);
|
||||
}
|
||||
|
||||
void NativeDeviceRestore() {
|
||||
void NativeDeviceLost() {
|
||||
if (g_gameInfoCache)
|
||||
g_gameInfoCache->Clear();
|
||||
screenManager->deviceLost();
|
||||
gl_lost();
|
||||
}
|
||||
|
||||
void NativeDeviceRestore() {
|
||||
NativeDeviceLost();
|
||||
screenManager->deviceRestore();
|
||||
if (GetGPUBackend() == GPUBackend::OPENGL) {
|
||||
gl_restore();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user