We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c6ff93 commit 7197d9cCopy full SHA for 7197d9c
o-ten-one/init.lua
@@ -83,7 +83,10 @@ function splashlib.new(init)
83
84
batch:clear()
85
86
- if batch:getBufferSize() < batch_w * batch_h then
+ -- Love 11.0 Removed SpriteBatch:setBufferSize, spritebatches now automatically grow when they run out of space.
87
+ -- https://love2d.org/wiki/SpriteBatch:setBufferSize
88
+ local major, minor = love.getVersion()
89
+ if major == 0 and minor < 11 and batch:getBufferSize() < batch_w * batch_h then
90
batch:setBufferSize(batch_w * batch_h)
91
end
92
0 commit comments