diff options
author | bunnei <bunneidev@gmail.com> | 2020-05-02 07:21:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-02 07:21:57 +0200 |
commit | 0128901102525203b76bae3d54dbf41514e31bda (patch) | |
tree | 94b642483e0231c6037cf20408882904ab0c3d74 /src/video_core | |
parent | Merge pull request #3693 from ReinUsesLisp/clean-samplers (diff) | |
parent | vk_rasterizer: Skip index buffer setup when vertices are zero (diff) | |
download | yuzu-0128901102525203b76bae3d54dbf41514e31bda.tar yuzu-0128901102525203b76bae3d54dbf41514e31bda.tar.gz yuzu-0128901102525203b76bae3d54dbf41514e31bda.tar.bz2 yuzu-0128901102525203b76bae3d54dbf41514e31bda.tar.lz yuzu-0128901102525203b76bae3d54dbf41514e31bda.tar.xz yuzu-0128901102525203b76bae3d54dbf41514e31bda.tar.zst yuzu-0128901102525203b76bae3d54dbf41514e31bda.zip |
Diffstat (limited to 'src/video_core')
-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 ccfd0e670..127f77b2c 100644 --- a/src/video_core/renderer_vulkan/vk_rasterizer.cpp +++ b/src/video_core/renderer_vulkan/vk_rasterizer.cpp @@ -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: { |