Ensure we don't set graphics state if there was no graphics pipeline bound before

This commit is contained in:
Gabriel A 2023-07-11 00:33:19 -03:00 committed by Emmanuel Hansen
parent 0a821b4af7
commit 63b2e587e4

View File

@ -241,16 +241,16 @@ namespace Ryujinx.Graphics.Vulkan
{
if (Pipeline != null)
{
// Setting graphics state with a compute pipeline bound crashes the Adreno driver.
if (Pbp == PipelineBindPoint.Graphics)
{
DynamicState.ReplayIfDirty(Gd.Api, CommandBuffer);
}
Gd.Api.CmdBindPipeline(CommandBuffer, Pbp, Pipeline.Get(Cbs).Value);
}
SignalCommandBufferChange();
// Setting graphics state with a compute pipeline bound crashes the Adreno driver.
if (Pbp == PipelineBindPoint.Graphics)
{
DynamicState.ReplayIfDirty(Gd.Api, CommandBuffer);
}
}
public void FlushCommandsImpl()