mirror of
https://github.com/XProger/OpenLara.git
synced 2025-03-14 16:19:41 +01:00
fix build on macOS 11 and 10.15, including on Apple silicon There was a build error on macOS due to use of undeclared identifiers glGetStringi and GL_NUM_EXTENSIONS. Those identifiers are declared in OpenGL 3.0. Switch from importing OpenGL/{gl.h,glext.h} to OpenGL/{gl3.h,gl3ext.h}, which fixes the problem. It also allows removing many OpenGL 3+ #defines, though we do need to #define GL_LUMINANCE as was done in OpenGL/gl.h. (It's also possible to keep the OpenGL/gl.h import, but it seems worse to be importing both.) Also remove #includes of Carbon/Carbon.h, OpenGL/OpenGL.h, AGL/agl.h, since they don't seem to be needed. Tested on macOS 11.4 (Big Sur) with Xcode 12.5.1 on Apple silicon, and on macOS 10.15.7 (Catalina) with Xcode 12.4 on an Intel-based Mac. (Hopefully this doesn't break older macOS platforms, but unfortunately I can't test that easily.) Fixes #354.
OpenLara
Classic Tomb Raider open-source engine
inspired by OpenTomb project http://opentomb.github.io/
Links
Screenshots
Description
Languages
C
64.6%
C++
26.9%
Assembly
5.5%
HLSL
0.6%
Makefile
0.6%
Other
1.7%