Fix a few more device-loss bugs.

This commit is contained in:
Henrik Rydgård committed 2017-11-10 15:10:36 +01:00
1 parent 1c76d28843
commit 378e01625c
4 files changed
+28 -9

No files matched your search

+6
View File
@@ -845,6 +845,12 @@ void NativeRender(GraphicsContext *graphicsContext) {
graphicsContext->Resize();
screenManager->resized();
// Do not enable unless you are testing device-loss on Windows
#if 0
screenManager->deviceLost();
screenManager->deviceRestore();
#endif
// TODO: Move this to new GraphicsContext objects for each backend.
#ifndef _WIN32
if (GetGPUBackend() == GPUBackend::OPENGL) {