I think that the GL interface shipped with FPC is based on dglOpenGL. But I think that the problem is that it isn't designed for the strict split between core and compatibility mode OpenGL that the Mac uses.

I have an idea about how I could change the interface but I fear that it might be complicated.