summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2020-04-28 07:24:33 +0200
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-04-28 07:24:33 +0200
commitd6a24b4a5b285217fa044a39741f2cdb40d8e966 (patch)
tree2b98fbed32ffd6a565e64489ab007fd4b1b8f94d
parentMerge pull request #3766 from ReinUsesLisp/renderpass-cache-key (diff)
downloadyuzu-d6a24b4a5b285217fa044a39741f2cdb40d8e966.tar
yuzu-d6a24b4a5b285217fa044a39741f2cdb40d8e966.tar.gz
yuzu-d6a24b4a5b285217fa044a39741f2cdb40d8e966.tar.bz2
yuzu-d6a24b4a5b285217fa044a39741f2cdb40d8e966.tar.lz
yuzu-d6a24b4a5b285217fa044a39741f2cdb40d8e966.tar.xz
yuzu-d6a24b4a5b285217fa044a39741f2cdb40d8e966.tar.zst
yuzu-d6a24b4a5b285217fa044a39741f2cdb40d8e966.zip
-rw-r--r--src/video_core/renderer_vulkan/vk_rasterizer.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/video_core/renderer_vulkan/vk_rasterizer.cpp b/src/video_core/renderer_vulkan/vk_rasterizer.cpp
index c821b1229..d634aa4ea 100644
--- a/src/video_core/renderer_vulkan/vk_rasterizer.cpp
+++ b/src/video_core/renderer_vulkan/vk_rasterizer.cpp
@@ -896,6 +896,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: {