mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
VideoCommon: fix "Buffer not large enough for all vertices!"
This commit is contained in:
@ -61,7 +61,8 @@ void VertexManager::PrepareForAdditionalData(int primitive, u32 count, u32 strid
|
|||||||
current_primitive_type = primitive_from_gx[primitive];
|
current_primitive_type = primitive_from_gx[primitive];
|
||||||
|
|
||||||
// Check for size in buffer, if the buffer gets full, call Flush()
|
// 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();
|
Flush();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user