diff options
| author | Peter0x44 <[email protected]> | 2023-11-23 23:41:44 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-11-24 00:41:44 +0100 |
| commit | 94aba23ef45d4faadb9d1657a2707f6721eca48d (patch) | |
| tree | 6aba462a6672c8099fdfede4125e50d588f41cb1 /src | |
| parent | ada1d0fb8caae85b544035bbd78b41927883f049 (diff) | |
| download | raylib-94aba23ef45d4faadb9d1657a2707f6721eca48d.tar.gz raylib-94aba23ef45d4faadb9d1657a2707f6721eca48d.zip | |
Expose glad functions when building raylib as a shared lib (#3572)
Diffstat (limited to 'src')
| -rw-r--r-- | src/rlgl.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |
