summaryrefslogtreecommitdiff
path: root/src/input_common/sdl/sdl_impl.cpp
diff options
context:
space:
mode:
authorGravatar ReinUsesLisp2021-01-23 17:15:42 -0300
committerGravatar ReinUsesLisp2021-02-13 02:18:38 -0300
commit3a2eefb16cf6916344bdb655189cbc546e49ef7e (patch)
tree1f9915c1b87e9fffca0a80f85386201c89f2251f /src/input_common/sdl/sdl_impl.cpp
parentbuffer_cache: Add extra bytes to guest SSBOs (diff)
downloadyuzu-3a2eefb16cf6916344bdb655189cbc546e49ef7e.tar.gz
yuzu-3a2eefb16cf6916344bdb655189cbc546e49ef7e.tar.xz
yuzu-3a2eefb16cf6916344bdb655189cbc546e49ef7e.zip
vk_buffer_cache: Add support for null index buffers
Games can bind a null index buffer (size=0) where all indices are evaluated as zero. VK_EXT_robustness2 doesn't support this and all drivers segfault when a null index buffer is passed to vkCmdBindIndexBuffer. Workaround this by creating a 4 byte buffer and filling it with zeroes. If it's read out of bounds, robustness takes care of returning zeroes as indices.
Diffstat (limited to 'src/input_common/sdl/sdl_impl.cpp')
0 files changed, 0 insertions, 0 deletions