Implemented a copy constructor and a assignment operator for Texture2D which actually copy the texture data. Needs further testing since copying of mipmaps doesn't work well.
Implemented legacy support for Texture2D::generateMipmaps()