mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-02-19 10:50:40 +00:00
(XMB Cg) Ribbon works with Cg now too
This commit is contained in:
parent
05f2153549
commit
ec4f961348
@ -6,7 +6,7 @@ static const char *stock_xmb =
|
||||
|
||||
"float iqhash(float n)\n"
|
||||
"{\n"
|
||||
"return fract(sin(n)*43758.5453);\n"
|
||||
"return frac(sin(n)*43758.5453);\n"
|
||||
"}\n"
|
||||
|
||||
"float noise(float3 x)\n"
|
||||
|
@ -146,10 +146,7 @@ static void gl_cg_set_uniform_parameter(
|
||||
}
|
||||
|
||||
if (param->lookup.add_prefix)
|
||||
{
|
||||
strlcat(ident, "IN.", sizeof(ident));
|
||||
strlcat(ident, param->lookup.ident, sizeof(ident));
|
||||
}
|
||||
snprintf(ident, sizeof(ident), "IN.%s", param->lookup.ident);
|
||||
location = cgGetNamedParameter(prog, param->lookup.add_prefix ? ident : param->lookup.ident);
|
||||
}
|
||||
else
|
||||
|
@ -1939,6 +1939,7 @@ static void xmb_draw_ribbon(menu_display_ctx_draw_t *draw)
|
||||
|
||||
t += 0.01;
|
||||
|
||||
uniform_param.enabled = true;
|
||||
uniform_param.lookup.enable = true;
|
||||
uniform_param.lookup.add_prefix = true;
|
||||
uniform_param.lookup.idx = VIDEO_SHADER_MENU;
|
||||
|
Loading…
x
Reference in New Issue
Block a user