Basic question about textures...

Started by
0 comments, last by klajntib 20 years, 1 month ago
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?
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).
--- krez ([email="krez_AT_optonline_DOT_net"]krez_AT_optonline_DOT_net[/email])

This topic is closed to new replies.

Advertisement