mirror of https://github.com/bjornbytes/lovr.git
Don't use autoinstancing for stream batches;
This commit is contained in:
parent
eae3669fea
commit
86977bd7bd
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue