mirror of https://github.com/Ryujinx/Ryujinx.git
Fix null sampler crash
This commit is contained in:
parent
1ff9c1098b
commit
80e8e1999b
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue