misc: chore: Fix possible NullReferenceExceptions, InvalidOperationExceptions

This commit is contained in:
KeatonTheBot 2025-09-30 15:03:01 -05:00
parent fa682d406e
commit 51b32981b6
15 changed files with 70 additions and 49 deletions

View file

@ -1691,6 +1691,11 @@ namespace Ryujinx.Graphics.Vulkan
return false;
}
if (_renderPass == null)
{
return true;
}
var pipeline = pbp == PipelineBindPoint.Compute
? _newState.CreateComputePipeline(Gd, Device, _program, PipelineCache)
: _newState.CreateGraphicsPipeline(Gd, Device, _program, PipelineCache, _renderPass.Get(Cbs).Value);