Remove redundant conditions

This commit is contained in:
Lioncash 2014-11-14 22:50:33 -05:00
parent 9428765596
commit 5d65c73be3
2 changed files with 1 additions and 8 deletions

View File

@ -941,7 +941,7 @@ static void gl_glsl_set_params(void *data, unsigned width, unsigned height,
(void)data;
if (!glsl || (glsl->gl_program[glsl->glsl_active_index] == 0))
if (glsl->gl_program[glsl->glsl_active_index] == 0)
return;
float input_size[2] = {(float)width, (float)height};

View File

@ -1094,22 +1094,15 @@ static void xmb_context_reset(void *data)
return;
gl = (gl_t*)driver_video_resolve(NULL);
if (!gl)
return;
xmb = (xmb_handle_t*)menu->userdata;
if (!xmb)
return;
(void)gl;
driver.gfx_use_rgba = true;
if (!menu || !xmb)
return;
fill_pathname_join(bgpath, g_settings.assets_directory,
"xmb", sizeof(bgpath));