summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2020-03-15 08:04:17 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-03-15 08:04:17 +0100
commita7131af7d6714b9ad3851e76c80c6c5ca4f696cf (patch)
treedc1345ff6018006a311f6a8b5672716a91dfc99f /src/video_core
parentMerge pull request #3508 from FernandoS27/page-table (diff)
downloadyuzu-a7131af7d6714b9ad3851e76c80c6c5ca4f696cf.tar
yuzu-a7131af7d6714b9ad3851e76c80c6c5ca4f696cf.tar.gz
yuzu-a7131af7d6714b9ad3851e76c80c6c5ca4f696cf.tar.bz2
yuzu-a7131af7d6714b9ad3851e76c80c6c5ca4f696cf.tar.lz
yuzu-a7131af7d6714b9ad3851e76c80c6c5ca4f696cf.tar.xz
yuzu-a7131af7d6714b9ad3851e76c80c6c5ca4f696cf.tar.zst
yuzu-a7131af7d6714b9ad3851e76c80c6c5ca4f696cf.zip
Diffstat (limited to 'src/video_core')
-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;
}