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

This commit is contained in:
twinaphex 2018-11-24 00:37:07 +01:00
parent 03a8bc9875
commit eef67ee0cd
3 changed files with 10 additions and 14 deletions

View File

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

View File

@ -1,5 +1,8 @@
#ifndef _SHADERS_COMMON
#define _SHADERS_COMMON
#undef GLSL_DERIV_PREAMBLE
#undef GLSL_PREAMBLE
#undef GLSL
#undef GLSL_300
#undef GLSL_330
#define GLSL_DERIV_PREAMBLE() "#extension GL_OES_standard_derivatives : enable\n"
#define GLSL_PREAMBLE() \
@ -21,5 +24,3 @@
#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,6 +1,4 @@
#ifndef _SHADERS_COMMON
#define _SHADERS_COMMON
#undef FRAGMENT
#undef VERTEX
#define VERTEX
#include "../glsl_common.h"
#endif