From f3ce3a6f741fdf02eb602e2d7df7b14951f4aa65 Mon Sep 17 00:00:00 2001 From: hristo Date: Mon, 25 Jan 2021 11:47:53 +0200 Subject: Removing config.h.in file (#1546) CMake relied on this file for configurations and also was interfering in the regular config.h by having a separate definition if building with CMake. This was not entirely correct so instead we will define compile time definitions separately through CMake (CompileDefinitions.cmake) and also will use the provided EXTERNAL_CONFIG_FLAGS that I found that will not use config.h in through the build process. I also introduced a new compiler option (CUSTOMIZE_BUILD) that when OFF will use the default config.h and when ON will show other options for redefining your own options. Fixed an error in rlgl.h where if you have both RLGL_STANDALONE and SUPPORT_VR_SIMULATOR you get a compile time error. --- src/rlgl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/rlgl.h') diff --git a/src/rlgl.h b/src/rlgl.h index d8e3de9d..11f511cc 100644 --- a/src/rlgl.h +++ b/src/rlgl.h @@ -840,7 +840,7 @@ typedef struct RenderBatch { float currentDepth; // Current depth value for next draw } RenderBatch; -#if defined(SUPPORT_VR_SIMULATOR) +#if defined(SUPPORT_VR_SIMULATOR) && !defined(RLGL_STANDALONE) // VR Stereo rendering configuration for simulator typedef struct VrStereoConfig { Shader distortionShader; // VR stereo rendering distortion shader -- cgit v1.2.3