diff --git a/gfx/drivers/gl_shaders/pipeline_xmb_ribbon.cg.h b/gfx/drivers/gl_shaders/pipeline_xmb_ribbon.cg.h index 0f83f40d4d..b5ec39d44a 100644 --- a/gfx/drivers/gl_shaders/pipeline_xmb_ribbon.cg.h +++ b/gfx/drivers/gl_shaders/pipeline_xmb_ribbon.cg.h @@ -55,3 +55,4 @@ static const char *stock_xmb = " OUT.color = float4(1.0, 1.0, 1.0, 0.05);\n" " return OUT;\n" "}\n" +; diff --git a/gfx/drivers/gl_shaders/pipeline_zahnrad.cg.h b/gfx/drivers/gl_shaders/pipeline_zahnrad.cg.h index 5561c569e0..3d0de9020e 100644 --- a/gfx/drivers/gl_shaders/pipeline_zahnrad.cg.h +++ b/gfx/drivers/gl_shaders/pipeline_zahnrad.cg.h @@ -34,3 +34,4 @@ static const char *zahnrad_shader = " OUT.color = tex2D(Texture, texCoord);\n" " return OUT;\n" "}\n" +; diff --git a/gfx/drivers_shader/shader_gl_cg.c b/gfx/drivers_shader/shader_gl_cg.c index c350e51448..0c3f46bc09 100644 --- a/gfx/drivers_shader/shader_gl_cg.c +++ b/gfx/drivers_shader/shader_gl_cg.c @@ -43,6 +43,8 @@ #include "../../rewind.h" #include "../video_state_tracker.h" +#include "../drivers/gl_shaders/pipeline_xmb_ribbon.cg.h" + #define SEMANTIC_TEXCOORD 0x92ee91cdU #define SEMANTIC_TEXCOORD0 0xf0c0cb9dU #define SEMANTIC_TEXCOORD1 0xf0c0cb9eU @@ -1091,6 +1093,7 @@ static void gl_cg_set_program_attributes(void *data, unsigned i) static void *gl_cg_init(void *data, const char *path) { unsigned i; + struct shader_program_info shader_prog_info; cg_shader_data_t *cg_data = (cg_shader_data_t*) calloc(1, sizeof(cg_shader_data_t)); @@ -1162,6 +1165,15 @@ static void *gl_cg_init(void *data, const char *path) gl_cg_set_shaders(cg_data->prg[1].fprg, cg_data->prg[1].vprg); + shader_prog_info.combined = stock_xmb; + shader_prog_info.is_file = false; + + gl_cg_compile_program( + cg_data, + VIDEO_SHADER_MENU, + &cg_data->prg[VIDEO_SHADER_MENU], + &shader_prog_info); + return cg_data; error: