GS: Fix crash if CAS pipeline failed to compile (it'd crash when the user enables CAS, which is still enough of a good reason to make the whole rendering backend fail to initialize)

This commit is contained in:
Filoppi 2025-04-18 02:54:06 +03:00
parent b104d72889
commit 73f53d5c82
2 changed files with 5 additions and 2 deletions

View File

@ -739,7 +739,9 @@ bool GSDevice12::Create(GSVSyncMode vsync_mode, bool allow_present_throttle)
return false;
}
CompileCASPipelines();
if (!CompileCASPipelines())
return false;
if (!CompileImGuiPipeline())
return false;

View File

@ -2104,7 +2104,8 @@ bool GSDeviceVK::Create(GSVSyncMode vsync_mode, bool allow_present_throttle)
return false;
}
CompileCASPipelines();
if (!CompileCASPipelines())
return false;
if (!CompileImGuiPipeline())
return false;