Fix null sampler crash

This commit is contained in:
Isaac Marovitz 2024-09-07 21:46:34 +02:00
parent 53cd0c0e7a
commit b0628d3d50
No known key found for this signature in database
GPG Key ID: 97250B2B09A132E1
1 changed files with 1 additions and 1 deletions

View File

@ -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
{