mirror of
https://github.com/GreemDev/Ryujinx
synced 2024-12-13 03:29:56 +01:00
Fix null sampler crash
This commit is contained in:
parent
6fed9b51b5
commit
ca30248d97
1 changed files with 1 additions and 1 deletions
|
@ -869,7 +869,7 @@ namespace Ryujinx.Graphics.Metal
|
||||||
{
|
{
|
||||||
if (texture != null)
|
if (texture != null)
|
||||||
{
|
{
|
||||||
_currentState.TextureRefs[binding] = new(stage, texture, samplerHolder.GetSampler());
|
_currentState.TextureRefs[binding] = new(stage, texture, samplerHolder?.GetSampler());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue