summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorFernando S <fsahmkow27@gmail.com>2021-07-20 10:05:28 +0200
committerGitHub <noreply@github.com>2021-07-20 10:05:28 +0200
commit9a26d96c9827e753a5700bc7d37437944e074815 (patch)
tree6b9e60bab6388c518e0985d258ea366d5801e131 /src/video_core
parentinput/sdl_impl: fix rumble support on DualSense. (#6683) (diff)
downloadyuzu-9a26d96c9827e753a5700bc7d37437944e074815.tar
yuzu-9a26d96c9827e753a5700bc7d37437944e074815.tar.gz
yuzu-9a26d96c9827e753a5700bc7d37437944e074815.tar.bz2
yuzu-9a26d96c9827e753a5700bc7d37437944e074815.tar.lz
yuzu-9a26d96c9827e753a5700bc7d37437944e074815.tar.xz
yuzu-9a26d96c9827e753a5700bc7d37437944e074815.tar.zst
yuzu-9a26d96c9827e753a5700bc7d37437944e074815.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/renderer_vulkan/vk_buffer_cache.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/video_core/renderer_vulkan/vk_buffer_cache.cpp b/src/video_core/renderer_vulkan/vk_buffer_cache.cpp
index 79876dfd0..7d4e6ea7b 100644
--- a/src/video_core/renderer_vulkan/vk_buffer_cache.cpp
+++ b/src/video_core/renderer_vulkan/vk_buffer_cache.cpp
@@ -161,6 +161,13 @@ void BufferCacheRuntime::BindIndexBuffer(PrimitiveTopology topology, IndexFormat
}
void BufferCacheRuntime::BindQuadArrayIndexBuffer(u32 first, u32 count) {
+ if (count == 0) {
+ ReserveNullBuffer();
+ scheduler.Record([this](vk::CommandBuffer cmdbuf) {
+ cmdbuf.BindIndexBuffer(*null_buffer, 0, VK_INDEX_TYPE_UINT32);
+ });
+ return;
+ }
ReserveQuadArrayLUT(first + count, true);
// The LUT has the indices 0, 1, 2, and 3 copied as an array