forked from MeloNX/MeloNX
Ensure we don't set graphics state if there was no graphics pipeline bound before
This commit is contained in:
parent
2814fa60bf
commit
7925581e72
@ -241,16 +241,16 @@ namespace Ryujinx.Graphics.Vulkan
|
||||
{
|
||||
if (Pipeline != null)
|
||||
{
|
||||
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);
|
||||
}
|
||||
|
||||
Gd.Api.CmdBindPipeline(CommandBuffer, Pbp, Pipeline.Get(Cbs).Value);
|
||||
}
|
||||
|
||||
SignalCommandBufferChange();
|
||||
}
|
||||
|
||||
public void FlushCommandsImpl()
|
||||
|
Loading…
x
Reference in New Issue
Block a user