I need to know that is there some way to unload the loaded image…?? Like I’ve loaded an image using readBMPFile(…), but I want to replace it with another image… Do I need to unload the previous one ??
Any data CPU side you can delete anytime you like, after the image has been cached to the GPU. Although be aware that if you fill the VRAM then your OpenGL implementation may well look for the texture CPU side again when it swaps data around.