Przeglądaj źródła

Call collectgarbage() after love.resize.

Sasha Szpakowski 7 miesięcy temu
rodzic
commit
5d514718b8
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      src/modules/love/callbacks.lua

+ 1 - 0
src/modules/love/callbacks.lua

@@ -114,6 +114,7 @@ function love.createhandlers()
 		end,
 		resize = function (w, h)
 			if love.resize then return love.resize(w, h) end
+			collectgarbage()
 		end,
 		filedropped = function (f, x, y)
 			if love.filedropped then return love.filedropped(f, x, y) end