fix triangle_fan size calculation

wasn't updated for the new primitive restart implementation
This commit is contained in:
degasus
2013-04-10 12:45:44 +02:00
parent a6412f7bd4
commit 1aa10b579a
2 changed files with 3 additions and 3 deletions

View File

@ -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());