summaryrefslogtreecommitdiffhomepage
path: root/src/rlgl.h
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2020-03-17 13:40:07 +0100
committerraysan5 <[email protected]>2020-03-17 13:40:07 +0100
commit23449419744e463fea32c597ac967f064b14422c (patch)
tree4c0061802983768ba11e818daa217c18c1cad5a3 /src/rlgl.h
parent6f41b9594a3f107ad7332af197cdd3565b7d33fe (diff)
downloadraylib-23449419744e463fea32c597ac967f064b14422c.tar.gz
raylib-23449419744e463fea32c597ac967f064b14422c.zip
Replace external libraries custom allocators by raylib ones #1074
NOTE: Two libraries still use custom allocators: glfw and stb_vorbis
Diffstat (limited to 'src/rlgl.h')
-rw-r--r--src/rlgl.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rlgl.h b/src/rlgl.h
index c90905dc..6df8b0b7 100644
--- a/src/rlgl.h
+++ b/src/rlgl.h
@@ -650,6 +650,9 @@ RLAPI int GetPixelDataSize(int width, int height, int format);// Get pixel data
#include <OpenGL/gl3.h> // OpenGL 3 library for OSX
#include <OpenGL/gl3ext.h> // OpenGL 3 extensions library for OSX
#else
+ #define GLAD_REALLOC RL_REALLOC
+ #define GLAD_FREE RL_FREE
+
#define GLAD_IMPLEMENTATION
#if defined(RLGL_STANDALONE)
#include "glad.h" // GLAD extensions loading library, includes OpenGL headers