1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-12-18 17:32:02 +00:00

Fix null sampler crash

This commit is contained in:
Isaac Marovitz 2024-09-07 21:46:34 +02:00 committed by Isaac Marovitz
parent 6fed9b51b5
commit ca30248d97

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
{