From 942731cc22e20d698ed84b2ca14c6dcd61f0e962 Mon Sep 17 00:00:00 2001 From: raysan5 Date: Wed, 13 Oct 2021 19:29:29 +0200 Subject: [PATCH] REVIEWED: macOS does not require GLAD library #2052 It directly uses the libraries provided by the system --- examples/others/raylib_opengl_interop.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/examples/others/raylib_opengl_interop.c b/examples/others/raylib_opengl_interop.c index 2ecc637d5..695910839 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 3 library for OSX + #include // 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)