diff --git a/gfx/drivers/gl_shaders/opaque.cg.h b/gfx/drivers/gl_shaders/opaque.cg.h index 1071a6f5fd..b105758ec4 100644 --- a/gfx/drivers/gl_shaders/opaque.cg.h +++ b/gfx/drivers/gl_shaders/opaque.cg.h @@ -1,6 +1,6 @@ #include "shaders_common.h" -static const char *stock_cg_gl_program = GLSL( +static const char *stock_cg_gl_program = CG( struct input { float2 tex_coord; diff --git a/gfx/drivers/gl_shaders/pipeline_nuklear.cg.h b/gfx/drivers/gl_shaders/pipeline_nuklear.cg.h index f2de0a2417..3b41dceb84 100644 --- a/gfx/drivers/gl_shaders/pipeline_nuklear.cg.h +++ b/gfx/drivers/gl_shaders/pipeline_nuklear.cg.h @@ -1,6 +1,6 @@ #include "shaders_common.h" -static const char *nuklear_shader = GLSL( +static const char *nuklear_shader = CG( struct input { float time; diff --git a/gfx/drivers/gl_shaders/pipeline_xmb_ribbon_simple.cg.h b/gfx/drivers/gl_shaders/pipeline_xmb_ribbon_simple.cg.h index de504a6c79..53dfa09483 100644 --- a/gfx/drivers/gl_shaders/pipeline_xmb_ribbon_simple.cg.h +++ b/gfx/drivers/gl_shaders/pipeline_xmb_ribbon_simple.cg.h @@ -1,6 +1,6 @@ #include "shaders_common.h" -static const char *stock_xmb_simple = GLSL( +static const char *stock_xmb_simple = CG( struct input { float time; diff --git a/gfx/drivers/gl_shaders/shaders_common.h b/gfx/drivers/gl_shaders/shaders_common.h index 2838bb4631..ce09b6eed8 100644 --- a/gfx/drivers/gl_shaders/shaders_common.h +++ b/gfx/drivers/gl_shaders/shaders_common.h @@ -2,9 +2,11 @@ #define _SHADERS_COMMON #if defined(HAVE_OPENGLES) +#define CG(src) "" #src #define GLSL(src) "precision mediump float;\n" #src #define GLSL_330(src) "#version 330 es\nprecision mediump float;\n" #src #else +#define CG(src) "" #src #define GLSL(src) "" #src #define GLSL_300(src) "#version 300 es\n" #src #define GLSL_330(src) "#version 330 core\n" #src