Browse Source

REVIEWED: macOS does not require GLAD library #2052

It directly uses the libraries provided by the system
pull/2063/head
raysan5 3 years ago
parent
commit
942731cc22
1 changed files with 7 additions and 1 deletions
  1. +7
    -1
      examples/others/raylib_opengl_interop.c

+ 7
- 1
examples/others/raylib_opengl_interop.c View File

@ -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)

Loading…
Cancel
Save