love2d-community / splashes

A collection of splash screens for LÖVE
Other
76 stars 18 forks source link

fix love 11.0 removed SpriteBatch:setBufferSize #27

Closed tatater56 closed 2 years ago

tatater56 commented 2 years ago

Love 11.0 Removed SpriteBatch:setBufferSize, spritebatches now automatically grow when they run out of space. See: https://love2d.org/wiki/SpriteBatch:setBufferSize

This would cause a crash if the window size was changed. This fix checks if the love version < 11.0 before calling setBufferSize.