mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2025-01-23 13:35:04 +03:00
Fix null sampler crash
This commit is contained in:
parent
d23de14812
commit
fe4c77788f
@ -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
Block a user