Fix crash with setStencilTest for compatibility
@@ -55,6 +55,8 @@ end
function graphics.stencil(func, action, value, keepvalues)
love.markDeprecated(2, "love.graphics.stencil", "function", "replaced", "love.graphics.setStencilMode or setStencilState")
+ if action == nil then action = "replace" end
+
if not keepvalues then
graphics.clear(false, true, false)
end