Add initial support for generating the mipmaps for a texture.
NB: requires GL3.0 support so will need a 1.4+ code path adding.
Stop being a goddamned retard and actually get the colours correctly!
Increase the texture size from 512 to 1024 per face.
Enable the mipmap building when the texture is complete.
Clear up the small texture when it's no longer needed.