Skip to content

Commit

Permalink
Fix for Blend Mode errors (#5)
Browse files Browse the repository at this point in the history
* Fix for Blend Mode errors

Setting normal blending function before drawing upscaled, else the last used blendmode in the GUI will be used for drawing the lowrez_pred
  • Loading branch information
Jerakin authored and britzl committed Oct 26, 2018
1 parent 718ddcf commit 37cb854
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lowrezjam/render/lowrez.render_script
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ local function draw_upscaled(self)
local offsety = (window_height - height) / 2

-- draw!
render.disable_state(render.STATE_BLEND)
render.set_viewport(offsetx, offsety, width, height)
render.set_view(IDENTITY)
render.set_projection(IDENTITY)
Expand Down

0 comments on commit 37cb854

Please sign in to comment.