mirror of
https://github.com/libretro/RetroArch.git
synced 2024-12-03 22:03:04 +00:00
Move shader path init to init_cg().
This commit is contained in:
parent
46ae26211f
commit
e0faf0cc47
@ -448,13 +448,6 @@ D3DVideo::D3DVideo(const video_info_t *info) :
|
||||
SetForegroundWindow(hWnd);
|
||||
SetFocus(hWnd);
|
||||
|
||||
#ifdef HAVE_CG
|
||||
auto shader_type = g_settings.video.shader_type;
|
||||
if ((shader_type == RARCH_SHADER_CG ||
|
||||
shader_type == RARCH_SHADER_AUTO) && *g_settings.video.cg_shader_path)
|
||||
cg_shader = g_settings.video.cg_shader_path;
|
||||
#endif
|
||||
|
||||
video_info = *info;
|
||||
init(video_info);
|
||||
|
||||
@ -588,6 +581,11 @@ void D3DVideo::process()
|
||||
#ifdef HAVE_CG
|
||||
bool D3DVideo::init_cg()
|
||||
{
|
||||
auto shader_type = g_settings.video.shader_type;
|
||||
if ((shader_type == RARCH_SHADER_CG ||
|
||||
shader_type == RARCH_SHADER_AUTO) && *g_settings.video.cg_shader_path)
|
||||
cg_shader = g_settings.video.cg_shader_path;
|
||||
|
||||
cgCtx = cgCreateContext();
|
||||
if (cgCtx == nullptr)
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user