Skip to content

Commit

Permalink
Update lowrez.render_script (#8)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rduke1982 authored Aug 1, 2022
1 parent c74d8c0 commit 2638cf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lowrezjam/render/lowrez.render_script
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2638cf1

Please sign in to comment.