Revert "Get rid of the header guards in shaders_common.h/glsl_common.h"

This reverts commit eef67ee0cda98af45e9ef7c54a95cdc7a90ac23f.
This commit is contained in:
twinaphex 2018-11-24 01:25:55 +01:00
parent eef67ee0cd
commit 08d024ecad
3 changed files with 14 additions and 10 deletions

View File

@ -1,3 +1,6 @@
#undef VERTEX
#define FRAGMENT
#ifndef _SHADERS_COMMON
#define _SHADERS_COMMON
#include "../glsl_common.h"
#endif

View File

@ -1,8 +1,5 @@
#undef GLSL_DERIV_PREAMBLE
#undef GLSL_PREAMBLE
#undef GLSL
#undef GLSL_300
#undef GLSL_330
#ifndef _SHADERS_COMMON
#define _SHADERS_COMMON
#define GLSL_DERIV_PREAMBLE() "#extension GL_OES_standard_derivatives : enable\n"
#define GLSL_PREAMBLE() \
@ -24,3 +21,5 @@
#define GLSL_300(src) "#version 300 es\n" GLSL_PREAMBLE() #src
#define GLSL_330(src) "#version 330 core\n" GLSL_PREAMBLE() #src
#endif
#endif

View File

@ -1,4 +1,6 @@
#undef FRAGMENT
#undef VERTEX
#define VERTEX
#ifndef _SHADERS_COMMON
#define _SHADERS_COMMON
#include "../glsl_common.h"
#endif