summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRodrigo Locatti <reinuseslisp@airmail.cc>2020-03-16 01:26:54 +0100
committerGitHub <noreply@github.com>2020-03-16 01:26:54 +0100
commitb16c8e0e8d6dd61945666c7b6e6838216667f416 (patch)
treebc1a5dc735e86daced26218cff3e611437234d20 /src
parentMerge pull request #3501 from ReinUsesLisp/rgba16-snorm (diff)
parentvk_rasterizer: Fix vertex range assert (diff)
downloadyuzu-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')
-rw-r--r--src/video_core/renderer_vulkan/vk_rasterizer.cpp2
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;
}