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

Author Topic: Concern: sf::RenderTexture's Create member  (Read 1484 times)

0 Members and 1 Guest are viewing this topic.

zeocyte

  • Newbie
  • *
  • Posts: 9
    • View Profile
Concern: sf::RenderTexture's Create member
« on: November 19, 2011, 09:47:49 am »
I wonder if sf::RenderTexture's Create member will free the resources created by previous Create member function calls. After wandering through it's source(please be noted that i'm do not know OpenGL stuffs) no function call or statement gave me a hint of previous resource deletion. I hope you will clarify me of this issue.
Everything is predetermined.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Concern: sf::RenderTexture's Create member
« Reply #1 on: November 19, 2011, 11:34:40 am »
Code: [Select]
myTexture.Create(...);
Code: [Select]
delete myRenderTexture;
These are the lines that you're looking for.
Laurent Gomila - SFML developer