Skip to content

Commit

Permalink
VideoConfigDiag: Allow anaglyph shader to be turned off.
Browse files Browse the repository at this point in the history
Also hard-code the default shader.
  • Loading branch information
CrossVR committed Jan 25, 2015
1 parent 262c3b1 commit fc46d46
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions Source/Core/DolphinWX/VideoConfigDiag.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -739,8 +739,7 @@ void VideoConfigDiag::PopulatePostProcessingShaders()
if (shaders.empty())
return;

if (vconfig.iStereoMode != STEREO_ANAGLYPH)
choice_ppshader->AppendString(_("(off)"));
choice_ppshader->AppendString(_("(off)"));

for (const std::string& shader : shaders)
{
Expand All @@ -753,7 +752,10 @@ void VideoConfigDiag::PopulatePostProcessingShaders()
choice_ppshader->Select(0);

if (vconfig.iStereoMode == STEREO_ANAGLYPH)
vconfig.sPostProcessingShader = shaders[0];
{
vconfig.sPostProcessingShader = "dubois";
choice_ppshader->SetStringSelection(StrToWxStr(vconfig.sPostProcessingShader));
}
else
vconfig.sPostProcessingShader.clear();
}
Expand Down
2 changes: 1 addition & 1 deletion Source/Core/DolphinWX/VideoConfigDiag.h
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ class VideoConfigDiag : public wxDialog
void Event_PPShader(wxCommandEvent &ev)
{
const int sel = ev.GetInt();
if (sel || vconfig.iStereoMode == STEREO_ANAGLYPH)
if (sel)
vconfig.sPostProcessingShader = WxStrToStr(ev.GetString());
else
vconfig.sPostProcessingShader.clear();
Expand Down

0 comments on commit fc46d46

Please sign in to comment.