Backport Lioncash - Fix some compile warnings realted to casting

This commit is contained in:
twinaphex 2014-07-23 07:17:31 +02:00
parent 65a64c1111
commit a47c4db5e5
2 changed files with 3 additions and 3 deletions

View File

@ -371,7 +371,7 @@ static GLuint compile_program(const char *vertex, const char *fragment, unsigned
if (!compile_shader(vert, "#define VERTEX\n#define PARAMETER_UNIFORM\n", vertex))
{
RARCH_ERR("Failed to compile vertex shader #%u\n", i);
return false;
return 0;
}
glAttachShader(prog, vert);
@ -384,7 +384,7 @@ static GLuint compile_program(const char *vertex, const char *fragment, unsigned
if (!compile_shader(frag, "#define FRAGMENT\n#define PARAMETER_UNIFORM\n", fragment))
{
RARCH_ERR("Failed to compile fragment shader #%u\n", i);
return false;
return 0;
}
glAttachShader(prog, frag);

View File

@ -330,7 +330,7 @@ static int16_t winxinput_joypad_axis (unsigned port_num, uint32_t joyaxis)
return dinput_joypad.axis(port_num, joyaxis);
if (!(g_winxinput_states[xplayer].connected))
return false;
return 0;
int16_t val = 0;
int axis = -1;