mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-12-26 18:43:04 +00:00
Check for null resources before declaring them resident
This commit is contained in:
parent
ca30248d97
commit
f58920b944
1 changed files with 4 additions and 1 deletions
|
@ -292,9 +292,12 @@ namespace Ryujinx.Graphics.Metal
|
|||
}
|
||||
|
||||
foreach (var resource in _currentState.RenderEncoderResources.Resources)
|
||||
{
|
||||
if (resource.MtlResource.NativePtr != IntPtr.Zero)
|
||||
{
|
||||
renderCommandEncoder.UseResource(resource.MtlResource, resource.ResourceUsage, resource.Stages);
|
||||
}
|
||||
}
|
||||
|
||||
foreach (var buffer in _currentState.RenderEncoderResources.VertexBuffers)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue