Jacob
Jacob
[GLES_cmake.patch](https://github.com/Return-To-The-Roots/s25client/files/10947981/GLES_cmake.patch) Looks like there is a bug in `external/glad/CMakeLists.txt`, it does a regex but then references the wrong match `CMAKE_MATCH_0` instead of `CMAKE_MATCH_1`. Which means it always choose OpenGL instead...
Unfortunately while that does fix the glad error, it now has missing definitions/functions required in `TerrainRenderer.cpp` Here's the output with `cmake .. -DBUILD_TESTING=OFF -DCMAKE_BUILD_TYPE=Release -DFETCHCONTENT_FULLY_DISCONNECTED=ON -DRTTR_USE_SYSTEM_LIBS=ON -DRTTR_INCLUDE_DEVTOOLS=OFF -DRTTR_OPENGL=GLES2.0` [error.log](https://github.com/Return-To-The-Roots/s25client/files/10948346/error.log) It...
Okay thats good to know, I will submit a PR for the cmake fix. For now i am using a compatibility layer [gl4es](https://github.com/ptitSeb/gl4es) and a hacked up version glad that...