Cannot launch Team Fortress 2 because of some OpenGL error
That's not going to happen. You'll need a newer computer to run games from Steam.

The Powerbook G4 you're trying to use was released in October 2001. Team Fortress 2 was released for macOS in 2010, nine years later. It never supported PowerPC systems, which had not been produced since late 2006.