1
0
mirror of synced 2025-01-18 00:56:49 +01:00
Eve 7a1efa8b9a
fix: MacOS not finding GL.h (#1436)
### Problem description
Commit 1249eb326112a8caa518151f0d82fbb7619938c0 added `#include
<GL/gl.h>` in a file, but MacOS uses `<OpenGL/gl.h>`.

### Implementation description
If compiling on MacOS, use `<OpenGL/gl.h>`. Otherwise, use `<GL/gl.h>`.

### Additional things
There is a redefine, so I used the preprocessor to ignore it for MacOS.
This feels a little awkward to me (but I don't know how to do it
better).

I'm not particularly familiar with C++, so let me know if this is the
right solution. This is also my first pull request, so feel free to
roast me for anything else :)
2023-11-19 11:57:18 +01:00
..