summaryrefslogtreecommitdiff
path: root/examples/basic_lighting/main.lua
diff options
context:
space:
mode:
Diffstat (limited to 'examples/basic_lighting/main.lua')
-rw-r--r--examples/basic_lighting/main.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/basic_lighting/main.lua b/examples/basic_lighting/main.lua
index 52552c3..8c5aed0 100644
--- a/examples/basic_lighting/main.lua
+++ b/examples/basic_lighting/main.lua
@@ -22,6 +22,7 @@ function RL.init()
local mSize = Vec2:newT( RL.GetMonitorSize( monitor ) )
local winSize = Vec2:new( 1028, 720 )
+ RL.SetGCUnload( false )
RL.SetWindowTitle( "Simple Lighting" )
RL.SetWindowState( RL.FLAG_WINDOW_RESIZABLE )
RL.SetWindowState( RL.FLAG_VSYNC_HINT )
@@ -138,3 +139,9 @@ function RL.draw()
RL.DrawText( "Use keys [Y][R][G][B] to toggle lights", { 10, 10 }, 20, RL.DARKGRAY )
end
+
+function RL.exit()
+ RL.UnloadMaterial( material, true )
+ RL.UnloadMesh( plane )
+ RL.UnloadMesh( cube )
+end