mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-09-26 02:10:05 +02:00
misc: chore: Fix possible NullReferenceExceptions, InvalidOperationExceptions
This commit is contained in:
@@ -542,7 +542,7 @@ namespace Ryujinx.Graphics.Vulkan
|
||||
pipeline.StagesCount = 1;
|
||||
pipeline.PipelineLayout = PipelineLayout;
|
||||
|
||||
pipeline.CreateComputePipeline(_gd, _device, this, (_gd.Pipeline as PipelineBase).PipelineCache);
|
||||
pipeline.CreateComputePipeline(_gd, _device, this, ((PipelineBase)_gd.Pipeline).PipelineCache);
|
||||
pipeline.Dispose();
|
||||
}
|
||||
|
||||
@@ -571,7 +571,7 @@ namespace Ryujinx.Graphics.Vulkan
|
||||
pipeline.StagesCount = (uint)_shaders.Length;
|
||||
pipeline.PipelineLayout = PipelineLayout;
|
||||
|
||||
pipeline.CreateGraphicsPipeline(_gd, _device, this, (_gd.Pipeline as PipelineBase).PipelineCache, renderPass.Value, throwOnError: true);
|
||||
pipeline.CreateGraphicsPipeline(_gd, _device, this, ((PipelineBase)_gd.Pipeline).PipelineCache, renderPass.Value, throwOnError: true);
|
||||
pipeline.Dispose();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user