diff options
| author | raysan5 <[email protected]> | 2021-10-13 19:29:29 +0200 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2021-10-13 19:29:29 +0200 |
| commit | 942731cc22e20d698ed84b2ca14c6dcd61f0e962 (patch) | |
| tree | 9d461253d648dad9dcb1d657c283d13b6ae05057 /examples | |
| parent | 4e88160e785b9c278567f729766172c5455b2cd7 (diff) | |
| download | raylib-942731cc22e20d698ed84b2ca14c6dcd61f0e962.tar.gz raylib-942731cc22e20d698ed84b2ca14c6dcd61f0e962.zip | |
REVIEWED: macOS does not require GLAD library #2052
It directly uses the libraries provided by the system
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/others/raylib_opengl_interop.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/examples/others/raylib_opengl_interop.c b/examples/others/raylib_opengl_interop.c index 2ecc637d..69591083 100644 --- a/examples/others/raylib_opengl_interop.c +++ b/examples/others/raylib_opengl_interop.c @@ -24,8 +24,14 @@ ********************************************************************************************/ #include "raylib.h" + #include "rlgl.h" // Required for: rlDrawRenderBatchActive(), rlGetMatrixModelview(), rlGetMatrixProjection() -#include "glad.h" // Required for: OpenGL functionality +#if defined(__APPLE__) + #include <OpenGL/gl3.h> // OpenGL 3 library for OSX + #include <OpenGL/gl3ext.h> // OpenGL 3 extensions library for OSX +#else + #include "glad.h" // Required for: OpenGL functionality +#endif #include "raymath.h" // Required for: MatrixMultiply(), MatrixToFloat() #if defined(PLATFORM_DESKTOP) |
