Default errhand stops audio playback;

This commit is contained in:
bjorn 2022-08-12 20:46:59 -07:00
parent 016d3753d5
commit 23932c6e7c
1 changed files with 2 additions and 0 deletions

View File

@ -164,6 +164,8 @@ function lovr.errhand(message)
if not lovr.graphics then return function() return 1 end end
if lovr.audio then lovr.audio.stop() end
local scale = .3
local font = lovr.graphics.getDefaultFont()
local wrap = .7 * font:getPixelDensity()