Cleaned up love.run a bit

This commit is contained in:
Alex Szpakowski
2013-06-08 19:56:36 -03:00
parent b3990e89f9
commit f253a016f6
2 changed files with 2 additions and 7 deletions
+2 -3
View File
@@ -456,15 +456,14 @@ function love.run()
-- Call update and draw
if love.update then love.update(dt) end -- will pass 0 if love.timer is disabled
if love.window and love.graphics then
love.graphics.clear()
love.graphics.origin()
if love.draw then love.draw() end
end
if love.window and love.graphics then
love.graphics.present()
end
if love.timer then love.timer.sleep(0.001) end
end