summaryrefslogtreecommitdiffhomepage
path: root/src/rlgl.c
diff options
context:
space:
mode:
authorRay <[email protected]>2018-01-26 01:17:19 +0100
committerGitHub <[email protected]>2018-01-26 01:17:19 +0100
commit779719f5dcabc170cd84e05b57ed03e9d87507d4 (patch)
treec1d248f8a5e1a1fba85978901eac5e53fda4c19c /src/rlgl.c
parentc2ec88f93015f688905a0a35b64cc7c29daef223 (diff)
parent520f317a7522804ff2f113f01ca69cd45d7863a5 (diff)
downloadraylib-779719f5dcabc170cd84e05b57ed03e9d87507d4.tar.gz
raylib-779719f5dcabc170cd84e05b57ed03e9d87507d4.zip
Merge pull request #440 from a3f/develop
Make function calls without prior declaration an error
Diffstat (limited to 'src/rlgl.c')
-rw-r--r--src/rlgl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rlgl.c b/src/rlgl.c
index d325a1bd..63860f1c 100644
--- a/src/rlgl.c
+++ b/src/rlgl.c
@@ -74,6 +74,7 @@
#if defined(GRAPHICS_API_OPENGL_11)
#if defined(__APPLE__)
#include <OpenGL/gl.h> // OpenGL 1.1 library for OSX
+ #include <OpenGL/glext.h>
#else
#if defined(_MSC_VER) // Using MSVC compiler, requires some additional definitions
// APIENTRY for OpenGL function pointer declarations is required
@@ -101,6 +102,7 @@
#if defined(GRAPHICS_API_OPENGL_33)
#if defined(__APPLE__)
#include <OpenGL/gl3.h> // OpenGL 3 library for OSX
+ #include <OpenGL/gl3ext.h>
#else
#define GLAD_IMPLEMENTATION
#if defined(RLGL_STANDALONE)
@@ -125,6 +127,7 @@
#include "shader_distortion.h" // Distortion shader to be embedded
#endif
+
//----------------------------------------------------------------------------------
// Defines and Macros
//----------------------------------------------------------------------------------