Backport Lioncash - Fix some compile warnings realted to casting
This commit is contained in:
parent
65a64c1111
commit
a47c4db5e5
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue