Skip to content

Commit

Permalink
Merge pull request #16953 from iota97/minor
Browse files Browse the repository at this point in the history
Stereo rendering minor UI fix
  • Loading branch information
hrydgard authored Feb 12, 2023
2 parents 6007f54 + 3397703 commit c42d660
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions UI/GameSettingsScreen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1830,15 +1830,14 @@ void DeveloperToolsScreen::CreateViews() {
Draw::DrawContext *draw = screenManager()->getDrawContext();

// Experimental, will move to main graphics settings later.
list->Add(new ItemHeader(gr->T("Stereo rendering")));

bool multiViewSupported = draw->GetDeviceCaps().multiViewSupported;

auto enableStereo = [=]() -> bool {
return g_Config.bStereoRendering && multiViewSupported;
};

if (draw->GetDeviceCaps().multiViewSupported) {
list->Add(new ItemHeader(gr->T("Stereo rendering")));
list->Add(new CheckBox(&g_Config.bStereoRendering, gr->T("Stereo rendering")));
std::vector<std::string> stereoShaderNames;

Expand Down

0 comments on commit c42d660

Please sign in to comment.