Added AAGLTexture code for converting old textures (left out of previous
commits).