summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Src/VertexManagerBase.cpp
diff options
context:
space:
mode:
authorJordan Woyak <jordan.woyak@gmail.com>2013-02-21 14:41:06 -0600
committerJordan Woyak <jordan.woyak@gmail.com>2013-02-21 14:41:06 -0600
commit677c6229ad4f0313a2346eb5ed4ae777ce02882d (patch)
treef7d01040ca07d5e96b461820b65d288b94133e85 /Source/Core/VideoCommon/Src/VertexManagerBase.cpp
parenta92c93f8702802cf152d41b680a164ede35d1016 (diff)
Experimental VertexLoader cleanup!
Diffstat (limited to 'Source/Core/VideoCommon/Src/VertexManagerBase.cpp')
-rw-r--r--Source/Core/VideoCommon/Src/VertexManagerBase.cpp27
1 files changed, 1 insertions, 26 deletions
diff --git a/Source/Core/VideoCommon/Src/VertexManagerBase.cpp b/Source/Core/VideoCommon/Src/VertexManagerBase.cpp
index 6fd1898db6..e36b03d1b1 100644
--- a/Source/Core/VideoCommon/Src/VertexManagerBase.cpp
+++ b/Source/Core/VideoCommon/Src/VertexManagerBase.cpp
@@ -92,6 +92,7 @@ int VertexManager::GetRemainingSize()
return (int)(s_pEndBufferPointer - s_pCurBufferPointer);
}
+// Not used anywhere
int VertexManager::GetRemainingVertices(int primitive)
{
switch (primitive)
@@ -123,32 +124,6 @@ void VertexManager::AddVertices(int primitive, int numVertices)
if (numVertices <= 0)
return;
- switch (primitive)
- {
- case GX_DRAW_QUADS:
- case GX_DRAW_TRIANGLES:
- case GX_DRAW_TRIANGLE_STRIP:
- case GX_DRAW_TRIANGLE_FAN:
- if (MAXIBUFFERSIZE - IndexGenerator::GetTriangleindexLen() < 3 * numVertices)
- Flush();
- break;
-
- case GX_DRAW_LINES:
- case GX_DRAW_LINE_STRIP:
- if (MAXIBUFFERSIZE - IndexGenerator::GetLineindexLen() < 2 * numVertices)
- Flush();
- break;
-
- case GX_DRAW_POINTS:
- if (MAXIBUFFERSIZE - IndexGenerator::GetPointindexLen() < numVertices)
- Flush();
- break;
-
- default:
- return;
- break;
- }
-
if (Flushed)
{
IndexGenerator::Start(TIBuffer, LIBuffer, PIBuffer);