mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 12:48:57 +00:00
fix triangle_fan size calculation
wasn't updated for the new primitive restart implementation
This commit is contained in:
parent
a6412f7bd4
commit
1aa10b579a
2 changed files with 3 additions and 3 deletions
|
@ -85,7 +85,7 @@ u32 VertexManager::GetRemainingIndices(int primitive)
|
|||
case GX_DRAW_TRIANGLE_STRIP:
|
||||
return (MAXIBUFFERSIZE - IndexGenerator::GetTriangleindexLen()) / 1 - 1;
|
||||
case GX_DRAW_TRIANGLE_FAN:
|
||||
return (MAXIBUFFERSIZE - IndexGenerator::GetTriangleindexLen()) / 4 + 2;
|
||||
return (MAXIBUFFERSIZE - IndexGenerator::GetTriangleindexLen()) / 6 * 4 + 1;
|
||||
|
||||
case GX_DRAW_LINES:
|
||||
return (MAXIBUFFERSIZE - IndexGenerator::GetLineindexLen());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue