Archived

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

bg3ntl

glDeleteTextures() ? must use ?

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
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