Have you tried using our dglOpenGL.pas OpenGL Header? It works with Delphi and FPC and supports the latest OpenGL version (4.3). I haven't tested it on MacOSX, but at least on Windows and Linux GL 3.x and GL 4.x works fine.