summaryrefslogtreecommitdiff
path: root/examples/bunnymark/main.lua
diff options
context:
space:
mode:
Diffstat (limited to 'examples/bunnymark/main.lua')
-rw-r--r--examples/bunnymark/main.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/bunnymark/main.lua b/examples/bunnymark/main.lua
index 06ab5d6..8274327 100644
--- a/examples/bunnymark/main.lua
+++ b/examples/bunnymark/main.lua
@@ -71,7 +71,8 @@ end
function RL.draw()
RL.ClearBackground( RL.RAYWHITE )
- for _, bunny in ipairs( bunnies ) do
+ for i = 1, #bunnies do
+ local bunny = bunnies[i]
-- NOTE: When internal batch buffer limit is reached (MAX_BATCH_ELEMENTS),
-- a draw call is launched and buffer starts being filled again;
-- before issuing a draw call, updated vertex data from internal CPU buffer is send to GPU...