Merge pull request #5439 from thedax/win32CrashFix

WinUI: Don't crash by referencing a nullptr when changing the rendering resolution.
This commit is contained in:
Henrik Rydgård 2014-02-13 22:50:31 +01:00
commit 39d1f4986d

View file

@ -275,7 +275,9 @@ namespace MainWindow
if (g_Config.iTexScalingLevel == TEXSCALING_AUTO)
setTexScalingMultiplier(0);
gpu->Resized();
if (gpu)
gpu->Resized();
UpdateRenderResolution();
ShowScreenResolution();
}