Add unit glext to be compiled for win64
Original Reporter info from Mantis: Michalis @michaliskambi
-
Reporter name: Michalis Kamburelis
Original Reporter info from Mantis: Michalis @michaliskambi
- Reporter name: Michalis Kamburelis
Description:
Testing my OpenGL programs (Castle Game Engine) for win64-x86_64, I found that
make all OS_TARGET=win64 CPU_TARGET=x86_64
inside FPC tree does not compile glext unit for this target. However, looking at source code of GLExt unit, it should work perfectly fine with win64. Even the reference to opengl32.dll inside (under $ifdef WINDOWS) is Ok --- according to http://www.opengl.org/wiki/FAQ#How_Does_It_Work_On_Windows.3F , you should link to opengl32.dll even on 64-bit Windows.
Tested that it works by
- adding units_win64=glext inside packages/opengl/Makefile.fpc
- running fpcmake -Twin64 inside packages/opengl/
- compiling FPC as usual, and using GLExt unit as usual.
Mantis conversion info:
- Mantis ID: 21013
- Fixed in version: 3.0.0
- Fixed in revision: 19961 (#3e70077d)