Skip to content

Commit 53d3b7a

Browse files
committed
GS/HW: Warning if too many vertices to rewrite.
1 parent ec2c207 commit 53d3b7a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pcsx2/GS/Renderers/HW/GSRendererHW.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4992,6 +4992,13 @@ void GSRendererHW::HandleProvokingVertexFirst(bool swap_indices)
49924992
else
49934993
{
49944994
// Slow path: de-index and swap the vertex colors. Used in cases where the drawing order matters (lines).
4995+
GL_PUSH("HW: Rewriting vertices for provoking vertex first.");
4996+
if (m_index.tail > UINT16_MAX)
4997+
{
4998+
GL_INS("HW: Too many vertices to rewrite safely, exiting.");
4999+
DevCon.Warning("HW: Too many vertices to rewrite safely for provoking vertex first.");
5000+
return;
5001+
}
49955002

49965003
// If all first/last vertices have the same color there is nothing to do.
49975004
bool first_eq_last = true;

0 commit comments

Comments
 (0)