mirror of
https://github.com/libretro/RetroArch
synced 2025-03-25 16:44:01 +00:00
C89_BUILD fixes
This commit is contained in:
parent
a83e6b3405
commit
54c0ca4bf5
@ -12,6 +12,5 @@ static const char *stock_fragment_xmb =
|
|||||||
" vec3 normal=normalize(cross(X,Y));\n"
|
" vec3 normal=normalize(cross(X,Y));\n"
|
||||||
" float c = (1.0 - dot(normal, up));\n"
|
" float c = (1.0 - dot(normal, up));\n"
|
||||||
" c = (1.0 - cos(c*c))/3.0;\n"
|
" c = (1.0 - cos(c*c))/3.0;\n"
|
||||||
//" c = pow(c, 4 );\n"
|
|
||||||
" gl_FragColor = vec4(1.0, 1.0, 1.0, c);\n"
|
" gl_FragColor = vec4(1.0, 1.0, 1.0, c);\n"
|
||||||
"}\n";
|
"}\n";
|
||||||
|
@ -2350,10 +2350,11 @@ static void xmb_init_ribbon(xmb_handle_t * xmb)
|
|||||||
{
|
{
|
||||||
gfx_coords_t coords;
|
gfx_coords_t coords;
|
||||||
float ribbon_verts[2 * XMB_RIBBON_VERTICES];
|
float ribbon_verts[2 * XMB_RIBBON_VERTICES];
|
||||||
|
float dummy[4 * XMB_RIBBON_VERTICES];
|
||||||
unsigned i, r, c, col;
|
unsigned i, r, c, col;
|
||||||
gfx_coord_array_t *ca = NULL;
|
gfx_coord_array_t *ca = NULL;
|
||||||
float dummy[4 * XMB_RIBBON_VERTICES] = { };
|
|
||||||
|
|
||||||
|
memset(&dummy[0], 0, 4 * XMB_RIBBON_VERTICES * sizeof(float));
|
||||||
menu_display_ctl(MENU_DISPLAY_CTL_COORDS_ARRAY_GET, &ca);
|
menu_display_ctl(MENU_DISPLAY_CTL_COORDS_ARRAY_GET, &ca);
|
||||||
|
|
||||||
/* Set up vertices */
|
/* Set up vertices */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user