From ca30248d97671fda533dd7eb89b94a90bc2e5c87 Mon Sep 17 00:00:00 2001 From: Isaac Marovitz Date: Sat, 7 Sep 2024 21:46:34 +0200 Subject: [PATCH] Fix null sampler crash --- src/Ryujinx.Graphics.Metal/EncoderStateManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Ryujinx.Graphics.Metal/EncoderStateManager.cs b/src/Ryujinx.Graphics.Metal/EncoderStateManager.cs index ae3f3abbf0..679cc9daf6 100644 --- a/src/Ryujinx.Graphics.Metal/EncoderStateManager.cs +++ b/src/Ryujinx.Graphics.Metal/EncoderStateManager.cs @@ -869,7 +869,7 @@ namespace Ryujinx.Graphics.Metal { if (texture != null) { - _currentState.TextureRefs[binding] = new(stage, texture, samplerHolder.GetSampler()); + _currentState.TextureRefs[binding] = new(stage, texture, samplerHolder?.GetSampler()); } else {