diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-01-23 17:15:42 -0300 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-02-13 02:18:38 -0300 |
commit | 3a2eefb16cf6916344bdb655189cbc546e49ef7e (patch) | |
tree | 1f9915c1b87e9fffca0a80f85386201c89f2251f /src/input_common/sdl/sdl_impl.cpp | |
parent | 0b8b9614426d099be7c5a02c147c9f97631c1c2f (diff) |
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