C89_BUILD fixes

This commit is contained in:
twinaphex 2016-04-25 13:45:53 +02:00
parent a83e6b3405
commit 54c0ca4bf5
2 changed files with 3 additions and 3 deletions

View File

@ -12,6 +12,5 @@ static const char *stock_fragment_xmb =
" vec3 normal=normalize(cross(X,Y));\n"
" float c = (1.0 - dot(normal, up));\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"
"}\n";
"}\n";

View File

@ -2350,10 +2350,11 @@ static void xmb_init_ribbon(xmb_handle_t * xmb)
{
gfx_coords_t coords;
float ribbon_verts[2 * XMB_RIBBON_VERTICES];
float dummy[4 * XMB_RIBBON_VERTICES];
unsigned i, r, c, col;
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);
/* Set up vertices */