Android: Properly restore screenshots on the Pause screen on task switching away and back.

Basically plumbs through DeviceLost/DeviceRestored to view elements and
into ManagedTexture.
This commit is contained in:
Henrik Rydgård committed 2018-03-27 23:11:10 +02:00
1 parent 6505f7762c
commit 8d0285dedd
13 files changed
+120 -21

No files matched your search

+3
View File
@@ -681,6 +681,7 @@ bool NativeInitGraphics(GraphicsContext *graphicsContext) {
screenManager->setUIContext(uiContext);
screenManager->setDrawContext(g_draw);
screenManager->setPostRenderCallback(&RenderOverlays, nullptr);
screenManager->deviceRestored();
#ifdef _WIN32
winAudioBackend = CreateAudioBackend((AudioBackendType)g_Config.iAudioBackend);
@@ -702,6 +703,8 @@ bool NativeInitGraphics(GraphicsContext *graphicsContext) {
}
void NativeShutdownGraphics() {
screenManager->deviceLost();
if (gpu)
gpu->DeviceLost();