Merge pull request #3809 from ReinUsesLisp/empty-index

vk_rasterizer: Skip index buffer setup when vertices are zero
pull/8/head
bunnei 6 years ago committed by GitHub
commit 0128901102
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -895,6 +895,9 @@ void RasterizerVulkan::SetupVertexArrays(FixedPipelineState::VertexInput& vertex
void RasterizerVulkan::SetupIndexBuffer(BufferBindings& buffer_bindings, DrawParameters& params,
bool is_indexed) {
if (params.num_vertices == 0) {
return;
}
const auto& regs = system.GPU().Maxwell3D().regs;
switch (regs.draw.topology) {
case Maxwell::PrimitiveTopology::Quads: {

Loading…
Cancel
Save