Commit 7cffae0e authored by Laszlo Agocs's avatar Laszlo Agocs

d3d: Skip needlessly rebinding ps stuff when switching srb

parent 2764ee1c
......@@ -508,7 +508,7 @@ void QRhiD3D11::setGraphicsPipeline(QRhiCommandBuffer *cb, QRhiGraphicsPipeline
cmd.cmd = QD3D11CommandBuffer::Command::BindGraphicsPipeline;
cmd.args.bindGraphicsPipeline.ps = psD;
cmd.args.bindGraphicsPipeline.srb = srbD;
cmd.args.bindGraphicsPipeline.srbOnlyChange = !pipelineChanged && !srbChanged && srbUpdate;
cmd.args.bindGraphicsPipeline.srbOnlyChange = !pipelineChanged;
cbD->commands.append(cmd);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment