Basic question about textures...
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?
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).
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement