Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Should i be calling "renderTexture.display();" when altering a rendertexture?  (Read 913 times)

0 Members and 1 Guest are viewing this topic.

killerloader

  • Newbie
  • *
  • Posts: 28
    • View Profile
I've always used "renderTexture.display();" after recreating an entire renderTexture, should i also be using it after only slightly altering a rendertexture? For example, if there is already lots of information in a renderTexture, and i decide to draw one extra pixel on it, should i then call display?
I've never encountered problems when not using display in this case, AS OF YET.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10835
    • View Profile
    • development blog
    • Email
The documentation and tutorials are clear about this. You have to always call display().
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/