Jump to content
  • Advertisement

Archived

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

Khaos Dragon

simple question about glTexImage2D and texture objects

This topic is 5223 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

I have tried to look this up on google but couldn't find a definite awnser. My question can be asked by posing a small little example. Say you store into a specific texture object via glTexImage a 1024 by 1024 image. Then later you bind to that texture image and use glTexImage again to load in a 256 by 256 image. This is clearly much less memory than before, but is the huge amount of memory first allocated for the object freed since now it only has to deal with this small image? Edit: And I know I could technically use glDeleteTextures to be guaranteed I am freeing the memory, but if opengl takes this into consideration I would prefer to do things as mentioned above. [edited by - Khaos Dragon on June 4, 2004 7:27:28 PM]

Share this post


Link to post
Share on other sites
Advertisement
opengl doesn''t say anything about that, it''s implementation-dependant. depending on your graphics card and driver, you may get texture memery fragmentation but i think the same is true if you delete the texture first. i think for practical purposes it doesn''t make a difference.

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!