summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/VertexManagerBase.cpp
diff options
context:
space:
mode:
authordegasus <wickmarkus@web.de>2014-01-23 23:39:20 +0100
committerdegasus <wickmarkus@web.de>2014-01-24 00:10:21 +0100
commit1898524c9620eb1669aea0df1904fe459abc916d (patch)
tree65db8d3e273edaf825fa00c64e508e760916915b /Source/Core/VideoCommon/VertexManagerBase.cpp
parentfd8757a64b8bfe05069215f322b8a8bc43ea8fe4 (diff)
VideoCommon: fix "Buffer not large enough for all vertices!"
Diffstat (limited to 'Source/Core/VideoCommon/VertexManagerBase.cpp')
-rw-r--r--Source/Core/VideoCommon/VertexManagerBase.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/VertexManagerBase.cpp b/Source/Core/VideoCommon/VertexManagerBase.cpp
index 96d0ce3431..18a6c81dd6 100644
--- a/Source/Core/VideoCommon/VertexManagerBase.cpp
+++ b/Source/Core/VideoCommon/VertexManagerBase.cpp
@@ -61,7 +61,8 @@ void VertexManager::PrepareForAdditionalData(int primitive, u32 count, u32 strid
current_primitive_type = primitive_from_gx[primitive];
// Check for size in buffer, if the buffer gets full, call Flush()
- if (count > IndexGenerator::GetRemainingIndices() || count > GetRemainingIndices(primitive) || needed_vertex_bytes > GetRemainingSize())
+ if ( !IsFlushed && ( count > IndexGenerator::GetRemainingIndices() ||
+ count > GetRemainingIndices(primitive) || needed_vertex_bytes > GetRemainingSize() ) )
{
Flush();