VideoCommon: fix "Buffer not large enough for all vertices!"

This commit is contained in:
degasus 2014-01-23 23:39:20 +01:00
parent fd8757a64b
commit 1898524c96
1 changed files with 2 additions and 1 deletions

View File

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