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

Basic question about textures...

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