glDeleteTextures() ? must use ?
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. ''
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
... 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
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement