If I load a TGA and I create a texture object with de pixel data of the TGA, can i make free() or delete in order to free memory allocated for image data?
I use NeHe’s TGA loading code and he doesn’t do free(imagedate) after create texture object…
If I load a TGA and I create a texture object with de pixel data of the TGA, can i make free() or delete in order to free memory allocated for image data?
I use NeHe’s TGA loading code and he doesn’t do free(imagedate) after create texture object…
Yes, you can release your image resources. OpenGL keeps its own copy of the image.