summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-05-02 07:21:57 +0200
committerGitHub <noreply@github.com>2020-05-02 07:21:57 +0200
commit0128901102525203b76bae3d54dbf41514e31bda (patch)
tree94b642483e0231c6037cf20408882904ab0c3d74 /src/video_core
parentMerge pull request #3693 from ReinUsesLisp/clean-samplers (diff)
parentvk_rasterizer: Skip index buffer setup when vertices are zero (diff)
downloadyuzu-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.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 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: {