mirror of
https://github.com/yuzu-emu/yuzu-mainline
synced 2024-11-23 03:43:41 +00:00
Merge pull request #3809 from ReinUsesLisp/empty-index
vk_rasterizer: Skip index buffer setup when vertices are zero
This commit is contained in:
commit
0128901102
1 changed files with 3 additions and 0 deletions
|
@ -895,6 +895,9 @@ void RasterizerVulkan::SetupVertexArrays(FixedPipelineState::VertexInput& vertex
|
||||||
|
|
||||||
void RasterizerVulkan::SetupIndexBuffer(BufferBindings& buffer_bindings, DrawParameters& params,
|
void RasterizerVulkan::SetupIndexBuffer(BufferBindings& buffer_bindings, DrawParameters& params,
|
||||||
bool is_indexed) {
|
bool is_indexed) {
|
||||||
|
if (params.num_vertices == 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
const auto& regs = system.GPU().Maxwell3D().regs;
|
const auto& regs = system.GPU().Maxwell3D().regs;
|
||||||
switch (regs.draw.topology) {
|
switch (regs.draw.topology) {
|
||||||
case Maxwell::PrimitiveTopology::Quads: {
|
case Maxwell::PrimitiveTopology::Quads: {
|
||||||
|
|
Loading…
Reference in a new issue