NativeShutdownGraphics: Check screenManager for nullptr.

This commit is contained in:
Henrik Rydgård 2022-12-30 22:59:44 +01:00
parent 25cf61f8c7
commit ebaef49516

View file

@ -985,7 +985,9 @@ bool CreateGlobalPipelines() {
void NativeShutdownGraphics() {
INFO_LOG(SYSTEM, "NativeShutdownGraphics");
screenManager->deviceLost();
if (screenManager) {
screenManager->deviceLost();
}
if (gpu)
gpu->DeviceLost();