Commit d6a24b4a authored by ReinUsesLisp's avatar ReinUsesLisp
Browse files

vk_rasterizer: Skip index buffer setup when vertices are zero

Xenoblade 2 invokes a draw call with zero vertices.
This is likely due to indirect drawing (glDrawArraysIndirect).

This causes a crash in the staging buffer pool when trying to create a
buffer with a size of zero. To workaround this, skip index buffer setup
entirely when the number of indices is zero.
parent 1517cba8
Supports Markdown
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