Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

bg3ntl

glDeleteTextures() ? must use ?

This topic is 5999 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

do u have to release all the textures you create during your program when it shuts down or is it done manually? i release all the bitmap data that is loaded when building the texture but i dont do anything about the texture object that is created after calling glTexImage2d(). ie i exit the program without callig glDeleteTextures(). is this wrong ? should i be calling glDeleteTextures to release all my textures ? it seems logical to do so, just need confirmation thnx, bg3ntl '' That''s a nice little nothing you are almost wearing. ''

Share this post


Link to post
Share on other sites
Advertisement
I''m sure that when your program exits, that all of your textures are cleaned up.

... actually .. the more I think about it, this probably really depends on the driver. It''s most likely up to the driver to manage this stuff, so if the driver doesn''t clean up correctly, then you could have a resource leak.

Regardless, I don''t think it really matters. You should *always* clean up in your code.


-Brannon

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!