mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-23 11:18:25 +00:00
Revert "(HLSL Xbox 360) Take out second_pass_shader/fbo"
This reverts commit 5172168143
.
This commit is contained in:
parent
4f1cd6a5ee
commit
1c87c26e72
@ -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();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user