From 335321e3aa238069df88cf06c98119ef4ef348d3 Mon Sep 17 00:00:00 2001 From: jussi Date: Fri, 19 May 2023 13:46:24 +0300 Subject: Material getter and get/set for parameters. --- examples/bunnymark/main.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'examples/bunnymark/main.lua') 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... -- cgit v1.2.3