fixed mipmap generation bug for OSX. Previous versions of OpenGl wanted you to hint to generate mipmaps, OSX wants you to explicity call the function that generates them.