Skip to content

Commit 5903ad8

Browse files
authored
Merge pull request #2211 from itzKiwiSky/main
Fix crash with setStencilTest for compatibility
2 parents 36f368f + 8478bbf commit 5903ad8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/modules/graphics/wrap_Graphics.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ end
5555
function graphics.stencil(func, action, value, keepvalues)
5656
love.markDeprecated(2, "love.graphics.stencil", "function", "replaced", "love.graphics.setStencilMode or setStencilState")
5757

58+
if action == nil then action = "replace" end
59+
5860
if not keepvalues then
5961
graphics.clear(false, true, false)
6062
end

0 commit comments

Comments
 (0)