mirror of
https://github.com/libretro/RetroArch
synced 2025-04-16 08:43:10 +00:00
Remove redundant conditions
This commit is contained in:
parent
9428765596
commit
5d65c73be3
@ -941,7 +941,7 @@ static void gl_glsl_set_params(void *data, unsigned width, unsigned height,
|
|||||||
|
|
||||||
(void)data;
|
(void)data;
|
||||||
|
|
||||||
if (!glsl || (glsl->gl_program[glsl->glsl_active_index] == 0))
|
if (glsl->gl_program[glsl->glsl_active_index] == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
float input_size[2] = {(float)width, (float)height};
|
float input_size[2] = {(float)width, (float)height};
|
||||||
|
@ -1094,22 +1094,15 @@ static void xmb_context_reset(void *data)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
gl = (gl_t*)driver_video_resolve(NULL);
|
gl = (gl_t*)driver_video_resolve(NULL);
|
||||||
|
|
||||||
if (!gl)
|
if (!gl)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
xmb = (xmb_handle_t*)menu->userdata;
|
xmb = (xmb_handle_t*)menu->userdata;
|
||||||
|
|
||||||
if (!xmb)
|
if (!xmb)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
(void)gl;
|
|
||||||
|
|
||||||
driver.gfx_use_rgba = true;
|
driver.gfx_use_rgba = true;
|
||||||
|
|
||||||
if (!menu || !xmb)
|
|
||||||
return;
|
|
||||||
|
|
||||||
fill_pathname_join(bgpath, g_settings.assets_directory,
|
fill_pathname_join(bgpath, g_settings.assets_directory,
|
||||||
"xmb", sizeof(bgpath));
|
"xmb", sizeof(bgpath));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user