Move initializing of textures to be closer to other OpenGL initialization.