diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-04-28 07:24:33 +0200 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-04-28 07:24:33 +0200 |
commit | d6a24b4a5b285217fa044a39741f2cdb40d8e966 (patch) | |
tree | 2b98fbed32ffd6a565e64489ab007fd4b1b8f94d /src/video_core/renderer_vulkan | |
parent | Merge pull request #3766 from ReinUsesLisp/renderpass-cache-key (diff) | |
download | yuzu-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 |
Diffstat (limited to 'src/video_core/renderer_vulkan')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_rasterizer.cpp | 3 |
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: { |