uluaGet* pops lua stack correctly when userdata given in table.
This commit is contained in:
@@ -29,6 +29,7 @@ function RL.init()
|
||||
RL.SetWindowPosition( { mPos[1] + mSize[1] / 2 - winSize[1] / 2, mPos[2] + mSize[2] / 2 - winSize[2] / 2 } )
|
||||
RL.SetWindowTitle( "Instancing" )
|
||||
RL.SetWindowState( RL.FLAG_VSYNC_HINT )
|
||||
RL.SetGCUnload( false )
|
||||
|
||||
-- Define the camera to look into our 3d world
|
||||
camera = RL.CreateCamera3D()
|
||||
@@ -108,3 +109,8 @@ function RL.draw()
|
||||
|
||||
RL.DrawFPS( { 10, 10 } )
|
||||
end
|
||||
|
||||
function RL.exit()
|
||||
RL.UnloadMaterial( matInstances, true )
|
||||
RL.UnloadMesh( cube )
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user