summaryrefslogtreecommitdiffhomepage
path: root/src/rlgl.h
diff options
context:
space:
mode:
authorRay <[email protected]>2019-03-12 16:00:26 +0100
committerRay <[email protected]>2019-03-12 16:00:26 +0100
commit477ea4d6606aa4659549f786935096942f187b37 (patch)
treebb0a7d172ea25eeec0fd492b4bd5b3804e6ea4ac /src/rlgl.h
parent76e968f6b7b211ed056f5ffe97d13086f58a661a (diff)
downloadraylib-477ea4d6606aa4659549f786935096942f187b37.tar.gz
raylib-477ea4d6606aa4659549f786935096942f187b37.zip
Support external config flags
Diffstat (limited to 'src/rlgl.h')
-rw-r--r--src/rlgl.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/rlgl.h b/src/rlgl.h
index b8895a08..00658fa1 100644
--- a/src/rlgl.h
+++ b/src/rlgl.h
@@ -563,7 +563,10 @@ int GetPixelDataSize(int width, int height, int format);// Get pixel data size i
#define SUPPORT_VR_SIMULATOR
#define SUPPORT_DISTORTION_SHADER
#else
- #include "config.h" // rlgl module configuration
+ // Check if config flags have been externally provided on compilation line
+ #if !defined(EXTERNAL_CONFIG_FLAGS)
+ #include "config.h" // Defines module configuration flags
+ #endif
#endif
#include <stdio.h> // Required for: fopen(), fclose(), fread()... [Used only on LoadText()]