Get mipmaps to work properly