Revert "(Cg) Take out second_pass_shader / FBO functionality - everything"

This reverts commit deeaf981f7.
This commit is contained in:
twinaphex 2013-04-06 03:55:17 +02:00
parent 1c87c26e72
commit 2484c4e526
1 changed files with 16 additions and 2 deletions

View File

@ -488,8 +488,22 @@ static bool load_plain(const char *path)
if (!load_program(1, path, true)) if (!load_program(1, path, true))
return false; return false;
prg[2] = prg[0]; if (*g_settings.video.second_pass_shader
cg_shader_num = 1; #ifndef RARCH_CONSOLE
&& g_settings.video.render_to_texture
#endif
)
{
if (!load_program(2, g_settings.video.second_pass_shader, true))
return false;
cg_shader_num = 2;
}
else
{
prg[2] = prg[0];
cg_shader_num = 1;
}
} }
else else
{ {