VideoConfigDiag: Move post-processing shader list to post processor

The backends don't use this list at all, and since more than one
backend supports post-processing now, it's duplicate code.
This commit is contained in:
Stenzek
2017-04-21 23:59:45 +10:00
parent 417a4ca206
commit 27ae5b8d34
9 changed files with 42 additions and 57 deletions

View File

@ -1253,9 +1253,10 @@ void VideoConfigDiag::CreateDescriptionArea(wxPanel* const page, wxBoxSizer* con
void VideoConfigDiag::PopulatePostProcessingShaders()
{
std::vector<std::string>& shaders = (vconfig.iStereoMode == STEREO_ANAGLYPH) ?
vconfig.backend_info.AnaglyphShaders :
vconfig.backend_info.PPShaders;
std::vector<std::string> shaders =
vconfig.iStereoMode == STEREO_ANAGLYPH ?
PostProcessingShaderImplementation::GetAnaglyphShaderList(vconfig.backend_info.api_type) :
PostProcessingShaderImplementation::GetShaderList(vconfig.backend_info.api_type);
if (shaders.empty())
return;