From 2638cf13243f9347433b41d445f1f20e80390c3b Mon Sep 17 00:00:00 2001 From: raymondduke Date: Mon, 1 Aug 2022 01:29:38 -0700 Subject: [PATCH] Update lowrez.render_script (#8) Noticed an error when loading this template. WARNING:RENDER: This interface for render.draw() is deprecated. Please see documentation at https://defold.com/ref/stable/render/#render.draw:predicate-[constants] This change fixed it. --- lowrezjam/render/lowrez.render_script | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lowrezjam/render/lowrez.render_script b/lowrezjam/render/lowrez.render_script index 0e0fbd8..b6757c4 100644 --- a/lowrezjam/render/lowrez.render_script +++ b/lowrezjam/render/lowrez.render_script @@ -134,7 +134,7 @@ local function draw_upscaled(self) constants.sharpness = vmath.vector4(9.9, 1.0, 1.0, 1.0) constants.texture_size = vmath.vector4(self.width, self.height, 1.0, 1.0) render.enable_material(self.upscale_material) - render.draw(self.lowrez_pred, constants) + render.draw(self.lowrez_pred, { constants = constants} ) render.disable_material() render.disable_texture(0, self.rt) end