Skip to content

Commit

Permalink
Expose glad functions when building raylib as a shared lib
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter0x44 committed Nov 23, 2023
1 parent ada1d0f commit 3bc184b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/rlgl.h
Original file line number Diff line number Diff line change
Expand Up @@ -773,6 +773,11 @@ RLAPI void rlLoadDrawQuad(void); // Load and draw a quad

#if defined(RLGL_IMPLEMENTATION)

// Expose OpenGL functions from glad in raylib
#if defined(BUILD_SHARED_LIBS)
#define GLAD_API_CALL_EXPORT_BUILD
#endif

#if defined(GRAPHICS_API_OPENGL_11)
#if defined(__APPLE__)
#include <OpenGL/gl.h> // OpenGL 1.1 library for OSX
Expand Down

0 comments on commit 3bc184b

Please sign in to comment.