summaryrefslogtreecommitdiff
path: root/src/input_common/main.cpp
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2020-04-28 02:24:33 -0300
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-04-28 02:24:33 -0300
commitd6a24b4a5b285217fa044a39741f2cdb40d8e966 (patch)
tree2b98fbed32ffd6a565e64489ab007fd4b1b8f94d /src/input_common/main.cpp
parent1517cba8ca24005e8ea521a539b0e2a1142dfbbd (diff)
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.
Diffstat (limited to 'src/input_common/main.cpp')
0 files changed, 0 insertions, 0 deletions