summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Src/VertexManagerBase.cpp
diff options
context:
space:
mode:
authordegasus <wickmarkus@web.de>2013-04-10 12:45:44 +0200
committerdegasus <wickmarkus@web.de>2013-04-10 12:45:44 +0200
commit1aa10b579a017257e74d4c26d2aab36944c55949 (patch)
treea123106c2d69669b8d85b7b3c5ccecbeaf29b3e6 /Source/Core/VideoCommon/Src/VertexManagerBase.cpp
parenta6412f7bd4f09ce299638afbfd0a6b085e681902 (diff)
fix triangle_fan size calculation
wasn't updated for the new primitive restart implementation
Diffstat (limited to 'Source/Core/VideoCommon/Src/VertexManagerBase.cpp')
-rw-r--r--Source/Core/VideoCommon/Src/VertexManagerBase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/Src/VertexManagerBase.cpp b/Source/Core/VideoCommon/Src/VertexManagerBase.cpp
index d85548bf1f..567621964f 100644
--- a/Source/Core/VideoCommon/Src/VertexManagerBase.cpp
+++ b/Source/Core/VideoCommon/Src/VertexManagerBase.cpp
@@ -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());