misc: chore: Fix possible NullReferenceExceptions, InvalidOperationExceptions

This commit is contained in:
KeatonTheBot committed 2025-09-30 15:05:14 -05:00
1 parent fa682d406e
commit 51b32981b6
15 files changed
+70 -49

No files matched your search

@@ -134,14 +134,18 @@ namespace Ryujinx.Graphics.Vulkan
// Register this render pass with all render target views.
var textures = fb.GetAttachmentViews();
foreach (var texture in textures)
if (fb != null)
{
texture.AddRenderPass(key, this);
var textures = fb.GetAttachmentViews();
foreach (var texture in textures)
{
texture.AddRenderPass(key, this);
}
_textures = textures;
}
_textures = textures;
_key = key;
_forcedFences = [];