Revert "(HLSL Xbox 360) Take out second_pass_shader/fbo"

This reverts commit 5172168143.
This commit is contained in:
twinaphex 2013-04-06 03:55:07 +02:00
parent 4f1cd6a5ee
commit 1c87c26e72

View File

@ -264,8 +264,21 @@ static bool load_plain(const char *path)
prg[1] = prg[0];
}
prg[2] = prg[0];
hlsl_shader_num = 1;
if (*g_settings.video.second_pass_shader && g_settings.video.render_to_texture)
{
if (!load_program(2, g_settings.video.second_pass_shader, true))
{
RARCH_ERR("Failed to load HLSL shader %s into secondpass.\n", path);
prg[2] = prg[0];
}
hlsl_shader_num = 2;
}
else
{
prg[2] = prg[0];
hlsl_shader_num = 1;
}
return true;
}
@ -354,4 +367,4 @@ void hlsl_deinit(void)
return;
hlsl_deinit_state();
}
}