NativeShutdownGraphics: Check screenManager for nullptr.

This commit is contained in:
Henrik Rydgård committed 2022-12-31 11:53:16 +01:00
1 parent 25cf61f8c7
commit ebaef49516
1 file changed
+3 -1
+3 -1
View File
@@ -985,7 +985,9 @@ bool CreateGlobalPipelines() {
void NativeShutdownGraphics() {
INFO_LOG(SYSTEM, "NativeShutdownGraphics");
screenManager->deviceLost();
if (screenManager) {
screenManager->deviceLost();
}
if (gpu)
gpu->DeviceLost();