diff options
author | yzct12345 <yzct12345@users.noreply.github.com> | 2022-12-13 02:52:32 +0100 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2022-12-13 02:53:05 +0100 |
commit | f6868ae4dd7928a251939069f9be6ff669bc391e (patch) | |
tree | b5a201c59d07251b051588a7a3e109454391d369 /src/video_core/renderer_vulkan/vk_buffer_cache.cpp | |
parent | Merge pull request #9398 from liamwhite/fail (diff) | |
download | yuzu-f6868ae4dd7928a251939069f9be6ff669bc391e.tar yuzu-f6868ae4dd7928a251939069f9be6ff669bc391e.tar.gz yuzu-f6868ae4dd7928a251939069f9be6ff669bc391e.tar.bz2 yuzu-f6868ae4dd7928a251939069f9be6ff669bc391e.tar.lz yuzu-f6868ae4dd7928a251939069f9be6ff669bc391e.tar.xz yuzu-f6868ae4dd7928a251939069f9be6ff669bc391e.tar.zst yuzu-f6868ae4dd7928a251939069f9be6ff669bc391e.zip |
Diffstat (limited to 'src/video_core/renderer_vulkan/vk_buffer_cache.cpp')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_buffer_cache.cpp | 3 |
1 files changed, 3 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 558b8db56..84d36fea6 100644 --- a/src/video_core/renderer_vulkan/vk_buffer_cache.cpp +++ b/src/video_core/renderer_vulkan/vk_buffer_cache.cpp @@ -285,6 +285,9 @@ void BufferCacheRuntime::BindQuadArrayIndexBuffer(u32 first, u32 count) { void BufferCacheRuntime::BindVertexBuffer(u32 index, VkBuffer buffer, u32 offset, u32 size, u32 stride) { + if (index >= device.GetMaxVertexInputBindings()) { + return; + } if (device.IsExtExtendedDynamicStateSupported()) { scheduler.Record([index, buffer, offset, size, stride](vk::CommandBuffer cmdbuf) { const VkDeviceSize vk_offset = buffer != VK_NULL_HANDLE ? offset : 0; |