PDA

View Full Version : Can I free texture data?



jon_t
08-24-2001, 03:02 PM
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...

DFrey
08-24-2001, 03:39 PM
Yes, you can release your image resources. OpenGL keeps its own copy of the image.