GS: Fix Lines2Sprites buffer growth

This commit is contained in:
TellowKrinkle
2026-08-08 20:26:00 +02:00
committed by lightningterror
parent 9945046a49
commit af48193ebb
+1 -3
View File
@@ -222,9 +222,7 @@ void GSRendererHW::Lines2Sprites()
// each sprite converted to quad needs twice the space
const int tail = m_vertex->tail * 2;
const int max_count = m_vertex->maxcount;
while (tail > max_count)
while (m_vertex->tail * 2 > m_vertex->max_count)
{
GrowVertexBuffer();
}