Skip to content

Commit 7fa39f7

Browse files
committed
Fix text not rendered in LOVE 11.3
1 parent 1aad0ec commit 7fa39f7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

util.lua

+3-1
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,9 @@ if util.compareLOVEVersion(11, 3) >= 0 then
326326
-- As of that commit, workaround shader to prevent black
327327
-- fridges is no longer necessary. For compatibility of
328328
-- previous LOVE versions, this function does nothing.
329-
util.drawText = setmetatable({}, {__call = function() end})
329+
util.drawText = setmetatable({}, {__call = function(self, ...)
330+
return love.graphics.draw(...)
331+
end})
330332
else
331333
util.drawText = setmetatable({workaroundShader = nil}, {
332334
__call = function(self, text, ...)

0 commit comments

Comments
 (0)