mirror of https://github.com/bjornbytes/lovr.git
Fix batching overflow;
This commit is contained in:
parent
511afef0c6
commit
28c453075a
|
@ -528,6 +528,10 @@ next:
|
|||
|
||||
// Start a new batch
|
||||
if (!batch) {
|
||||
if (state.batchCount >= MAX_BATCHES) {
|
||||
lovrGraphicsFlush();
|
||||
}
|
||||
|
||||
float* transforms = lovrGraphicsMapBuffer(STREAM_TRANSFORM, MAX_DRAWS);
|
||||
Color* colors = lovrGraphicsMapBuffer(STREAM_COLOR, MAX_DRAWS);
|
||||
|
||||
|
|
Loading…
Reference in New Issue