mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-02 14:19:02 +00:00
VideoCommon: fix "Buffer not large enough for all vertices!"
This commit is contained in:
parent
fd8757a64b
commit
1898524c96
1 changed files with 2 additions and 1 deletions
|
@ -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();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue