Jump to content
  • Advertisement

Archived

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

klajntib

Basic question about textures...

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

When you load an image and bind it as a texture I can delete the loaded image data and the texture still works. This means that the texture data is either copied to VRAM or another copy is made in System RAM. Am I wrong? If I don''t delete the loaded data, will my app eat 2x as much memory? So is it correct to do: Load() glTexImage2D(...) delete [] image->data and then use the texture?

Share this post


Link to post
Share on other sites
Advertisement
yah, it is copied by OpenGL (whether in VRAM or system memory depends on how much VRAM is left, but either way it is stored independently).

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!