diff options
author | Rodrigo Locatti <reinuseslisp@airmail.cc> | 2020-03-16 01:26:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-16 01:26:54 +0100 |
commit | b16c8e0e8d6dd61945666c7b6e6838216667f416 (patch) | |
tree | bc1a5dc735e86daced26218cff3e611437234d20 /src/video_core | |
parent | Merge pull request #3501 from ReinUsesLisp/rgba16-snorm (diff) | |
parent | vk_rasterizer: Fix vertex range assert (diff) | |
download | yuzu-b16c8e0e8d6dd61945666c7b6e6838216667f416.tar yuzu-b16c8e0e8d6dd61945666c7b6e6838216667f416.tar.gz yuzu-b16c8e0e8d6dd61945666c7b6e6838216667f416.tar.bz2 yuzu-b16c8e0e8d6dd61945666c7b6e6838216667f416.tar.lz yuzu-b16c8e0e8d6dd61945666c7b6e6838216667f416.tar.xz yuzu-b16c8e0e8d6dd61945666c7b6e6838216667f416.tar.zst yuzu-b16c8e0e8d6dd61945666c7b6e6838216667f416.zip |
Diffstat (limited to 'src/video_core')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_rasterizer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/renderer_vulkan/vk_rasterizer.cpp b/src/video_core/renderer_vulkan/vk_rasterizer.cpp index f889019c1..c9886cc16 100644 --- a/src/video_core/renderer_vulkan/vk_rasterizer.cpp +++ b/src/video_core/renderer_vulkan/vk_rasterizer.cpp @@ -1151,7 +1151,7 @@ std::size_t RasterizerVulkan::CalculateVertexArraysSize() const { // This implementation assumes that all attributes are used in the shader. const GPUVAddr start{regs.vertex_array[index].StartAddress()}; const GPUVAddr end{regs.vertex_array_limit[index].LimitAddress()}; - DEBUG_ASSERT(end > start); + DEBUG_ASSERT(end >= start); size += (end - start + 1) * regs.vertex_array[index].enable; } |