From 73f53d5c828df514ea1a6258a6caaceae6f31ea8 Mon Sep 17 00:00:00 2001 From: Filoppi Date: Fri, 18 Apr 2025 02:54:06 +0300 Subject: [PATCH] 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) --- pcsx2/GS/Renderers/DX12/GSDevice12.cpp | 4 +++- pcsx2/GS/Renderers/Vulkan/GSDeviceVK.cpp | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/pcsx2/GS/Renderers/DX12/GSDevice12.cpp b/pcsx2/GS/Renderers/DX12/GSDevice12.cpp index dc0cf04361..678df9e6a6 100644 --- a/pcsx2/GS/Renderers/DX12/GSDevice12.cpp +++ b/pcsx2/GS/Renderers/DX12/GSDevice12.cpp @@ -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; diff --git a/pcsx2/GS/Renderers/Vulkan/GSDeviceVK.cpp b/pcsx2/GS/Renderers/Vulkan/GSDeviceVK.cpp index 47e1695833..762f65ed5e 100644 --- a/pcsx2/GS/Renderers/Vulkan/GSDeviceVK.cpp +++ b/pcsx2/GS/Renderers/Vulkan/GSDeviceVK.cpp @@ -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;