SFML community forums

Help => Graphics => Topic started by: zeocyte on November 19, 2011, 09:47:49 am

Title: Concern: sf::RenderTexture's Create member
Post by: zeocyte 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.
Title: Concern: sf::RenderTexture's Create member
Post by: Laurent 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.