Don't accidentally draw meshes too many times;

Oops!
This commit is contained in:
bjorn 2019-07-02 00:09:43 -07:00
parent 44da36b610
commit 775cf5cda1
1 changed files with 1 additions and 1 deletions

View File

@ -606,7 +606,7 @@ next:
if (req->type == BATCH_MESH) {
rangeStart = req->params.mesh.rangeStart;
rangeCount = req->params.mesh.rangeCount;
instances = req->params.mesh.instances;
instances = req->instanced ? 0 : req->params.mesh.instances;
} else {
rangeStart = req->indexCount > 0 ? state.head[STREAM_INDEX] : state.head[STREAM_VERTEX];
rangeCount = 0;