mirror of https://github.com/raysan5/raylib
Expose glad functions when building raylib as a shared lib (#3572)
This commit is contained in:
parent
ada1d0fb8c
commit
94aba23ef4
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue