mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-23 11:18:25 +00:00
(GL) Cleanups - gl_set_shader
This commit is contained in:
parent
dfe723c727
commit
92faefbccc
@ -3043,8 +3043,7 @@ static bool gl_set_shader(void *data,
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
RARCH_ERR("[GL]: Cannot find shader core for path: %s.\n", path);
|
RARCH_ERR("[GL]: Cannot find shader core for path: %s.\n", path);
|
||||||
context_bind_hw_render(gl, true);
|
goto error;
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_FBO
|
#ifdef HAVE_FBO
|
||||||
@ -3065,8 +3064,7 @@ static bool gl_set_shader(void *data,
|
|||||||
|
|
||||||
RARCH_WARN("[GL]: Failed to set multipass shader. Falling back to stock.\n");
|
RARCH_WARN("[GL]: Failed to set multipass shader. Falling back to stock.\n");
|
||||||
|
|
||||||
context_bind_hw_render(gl, true);
|
goto error;
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
gl_update_tex_filter_frame(gl);
|
gl_update_tex_filter_frame(gl);
|
||||||
@ -3109,10 +3107,14 @@ static bool gl_set_shader(void *data,
|
|||||||
#if defined(_WIN32) && !defined(_XBOX)
|
#if defined(_WIN32) && !defined(_XBOX)
|
||||||
shader_dlg_params_reload();
|
shader_dlg_params_reload();
|
||||||
#endif
|
#endif
|
||||||
return true;
|
|
||||||
#else
|
|
||||||
return false;
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
return true;
|
||||||
|
|
||||||
|
error:
|
||||||
|
context_bind_hw_render(gl, true);
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void gl_viewport_info(void *data, struct video_viewport *vp)
|
static void gl_viewport_info(void *data, struct video_viewport *vp)
|
||||||
|
Loading…
Reference in New Issue
Block a user