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:
Unknown W. Brackets committed 2016-09-10 21:58:42 -07:00
1 parent 29f5763d32
commit 92d930887f
23 files changed
+109 -10

No files matched your search

+6 -1
View File
@@ -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();
}