From 88a0e720cbe567aff67b6124aa9e6cfc17599739 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Sat, 20 Aug 2022 16:20:27 -0300 Subject: Use RGBA16 vertex format if RGB16 is not supported on Vulkan (#3552) * Use RGBA16 vertex format if RGB16 is not supported on Vulkan * Catch all shader compilation exceptions --- Ryujinx.Graphics.Gpu/Shader/DiskCache/ParallelDiskCacheLoader.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Ryujinx.Graphics.Gpu/Shader/DiskCache/ParallelDiskCacheLoader.cs') diff --git a/Ryujinx.Graphics.Gpu/Shader/DiskCache/ParallelDiskCacheLoader.cs b/Ryujinx.Graphics.Gpu/Shader/DiskCache/ParallelDiskCacheLoader.cs index cb70811b..04d93bba 100644 --- a/Ryujinx.Graphics.Gpu/Shader/DiskCache/ParallelDiskCacheLoader.cs +++ b/Ryujinx.Graphics.Gpu/Shader/DiskCache/ParallelDiskCacheLoader.cs @@ -573,9 +573,9 @@ namespace Ryujinx.Graphics.Gpu.Shader.DiskCache RecompileGraphicsFromGuestCode(guestShaders, specState, programIndex); } } - catch (DiskCacheLoadException diskCacheLoadException) + catch (Exception exception) { - Logger.Error?.Print(LogClass.Gpu, $"Error translating guest shader. {diskCacheLoadException.Message}"); + Logger.Error?.Print(LogClass.Gpu, $"Error translating guest shader. {exception.Message}"); ErrorCount++; SignalCompiled(); -- cgit v1.2.3