Looks like someone already tried to create a FreePascal friendly verison of dglOpenGL.pas over @ http://www.delphigl.com/forum/download.php?id=548, you may want to try that if you don't want to use the FPC gl &? glu units, but you will still have the Delphi Graphics reference problem in textures.pas.