Jump to content

Problems with context:DrawImage


DooMAGE
 Share

Recommended Posts

When I drawn a image to fill the screen with:

 

context:DrawImage(self.overlayTexture,0,0,context:GetWidth(),context:GetHeight())

 

and later stop drawing, you can still see a red little line of the overlay that I drawed in the botton of the screen, it's distracting :/

How can I properly clean the screen after a context:DrawImage ?

 

I tried with:

self.overlayTexture:Release()

context:SetBlendMode(1)

context:SetColor(1,1,1,1)

context:Clear()

 

No deal.

 

EDIT: This only happens when I use a Posteffects :/

 

context_bugans4x.png

My Leadwerks games!

https://ragingmages.itch.io/

Link to comment
Share on other sites

Just curious, what happens if you subtract 1 from context:GetHeight()? Or more?

context:DrawImage(self.overlayTexture,0,0,context:GetWidth(),context:GetHeight()-1)

 

Yeah, this does the trick, looks like the render don't like that we fill 100% of the screen, the shaders don't update the last few pixels of the screen height.

 

Thanks.

My Leadwerks games!

https://ragingmages.itch.io/

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...