Don't use autoinstancing for stream batches;

This commit is contained in:
bjorn 2019-01-31 17:23:49 -08:00
parent eae3669fea
commit 86977bd7bd
1 changed files with 1 additions and 1 deletions

View File

@ -609,7 +609,7 @@ void lovrGraphicsFlush() {
// Resolve geometry
Mesh* mesh = NULL;
DrawMode drawMode;
bool instanced = batch->drawCount >= 4;
bool instanced = batch->vertexCount == 0 && batch->drawCount >= 4;
bool flushGeometry = batch->vertexCount > 0;
int instances = instanced ? batch->drawCount : 1;
uint32_t vertexCount = 0;