mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2025-01-23 21:44:56 +03:00
Check for null resources before declaring them resident
This commit is contained in:
parent
fe4c77788f
commit
89c05ac239
@ -293,7 +293,10 @@ namespace Ryujinx.Graphics.Metal
|
|||||||
|
|
||||||
foreach (var resource in _currentState.RenderEncoderResources.Resources)
|
foreach (var resource in _currentState.RenderEncoderResources.Resources)
|
||||||
{
|
{
|
||||||
renderCommandEncoder.UseResource(resource.MtlResource, resource.ResourceUsage, resource.Stages);
|
if (resource.MtlResource.NativePtr != IntPtr.Zero)
|
||||||
|
{
|
||||||
|
renderCommandEncoder.UseResource(resource.MtlResource, resource.ResourceUsage, resource.Stages);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach (var buffer in _currentState.RenderEncoderResources.VertexBuffers)
|
foreach (var buffer in _currentState.RenderEncoderResources.VertexBuffers)
|
||||||
|
Loading…
Reference in New Issue
Block a user