Clarify intent of cg_shader init.
This commit is contained in:
parent
71f2754e91
commit
a47860b230
|
@ -448,11 +448,14 @@ D3DVideo::D3DVideo(const video_info_t *info) :
|
||||||
SetForegroundWindow(hWnd);
|
SetForegroundWindow(hWnd);
|
||||||
SetFocus(hWnd);
|
SetFocus(hWnd);
|
||||||
|
|
||||||
|
// This should only be done once here
|
||||||
|
// to avoid set_shader() to be overridden
|
||||||
|
// later.
|
||||||
#ifdef HAVE_CG
|
#ifdef HAVE_CG
|
||||||
auto shader_type = g_settings.video.shader_type;
|
auto shader_type = g_settings.video.shader_type;
|
||||||
if ((shader_type == RARCH_SHADER_CG ||
|
if ((shader_type == RARCH_SHADER_CG ||
|
||||||
shader_type == RARCH_SHADER_AUTO) && *g_settings.video.cg_shader_path)
|
shader_type == RARCH_SHADER_AUTO) && *g_settings.video.cg_shader_path)
|
||||||
cg_shader = g_settings.video.cg_shader_path;
|
cg_shader = g_settings.video.cg_shader_path;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
video_info = *info;
|
video_info = *info;
|
||||||
|
|
Loading…
Reference in New Issue