From 8ca53f9c843712c25988f44761417f526fc26212 Mon Sep 17 00:00:00 2001 From: kd-11 Date: Tue, 12 Nov 2019 16:46:14 +0300 Subject: [PATCH] rsx: Remember to min-max the anchor indices of a polygon or triangle fan --- rpcs3/Emu/RSX/Common/BufferUtils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpcs3/Emu/RSX/Common/BufferUtils.cpp b/rpcs3/Emu/RSX/Common/BufferUtils.cpp index 2ea98df02e..488560f251 100644 --- a/rpcs3/Emu/RSX/Common/BufferUtils.cpp +++ b/rpcs3/Emu/RSX/Common/BufferUtils.cpp @@ -936,7 +936,7 @@ namespace if (is_primitive_restart_enabled && index == primitive_restart_index) continue; - anchor = index; + anchor = min_max(min_index, max_index, index); needs_anchor = false; continue; } @@ -951,7 +951,7 @@ namespace if (last_index == invalid_index) { //Need at least one anchor and one outer index to create a triangle - last_index = index; + last_index = min_max(min_index, max_index, index); continue; }