glTexImage2D function takes a pointer to the Image data. Now after I have called glGenTextures, glBindTexture, and then glTexImage2D
to use texture in OpenGl. Can I free the memory allocated to the Image data ptr? or does opengl Copies the data from the pointer keeps it inside GPU after call to glTexImage2D or it uses my Image data for texture?