mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Drop 3D Vision Support
This commit is contained in:
@ -235,8 +235,7 @@ void AdvancedWidget::AddDescriptions()
|
||||
"Implements fullscreen mode with a borderless window spanning the whole screen instead of "
|
||||
"using exclusive mode. Allows for faster transitions between fullscreen and windowed mode, "
|
||||
"but slightly increases input latency, makes movement less smooth and slightly decreases "
|
||||
"performance.\n\nExclusive mode is required for Nvidia 3D Vision to work in the Direct3D "
|
||||
"backend.\n\nIf unsure, leave this unchecked.");
|
||||
"performance.\n\nIf unsure, leave this unchecked.");
|
||||
#endif
|
||||
|
||||
AddDescription(m_enable_wireframe, TR_WIREFRAME_DESCRIPTION);
|
||||
|
@ -110,10 +110,9 @@ void EnhancementsWidget::CreateWidgets()
|
||||
auto* stereoscopy_layout = new QGridLayout();
|
||||
stereoscopy_box->setLayout(stereoscopy_layout);
|
||||
|
||||
m_3d_mode =
|
||||
new GraphicsChoice({tr("Off"), tr("Side-by-Side"), tr("Top-and-Bottom"), tr("Anaglyph"),
|
||||
tr("HDMI 3D"), tr("Passive"), tr("NVIDIA 3D Vision")},
|
||||
Config::GFX_STEREO_MODE);
|
||||
m_3d_mode = new GraphicsChoice({tr("Off"), tr("Side-by-Side"), tr("Top-and-Bottom"),
|
||||
tr("Anaglyph"), tr("HDMI 3D"), tr("Passive")},
|
||||
Config::GFX_STEREO_MODE);
|
||||
m_3d_depth = new GraphicsSlider(0, 100, Config::GFX_STEREO_DEPTH);
|
||||
m_3d_convergence = new GraphicsSlider(0, 200, Config::GFX_STEREO_CONVERGENCE, 100);
|
||||
m_3d_swap_eyes = new GraphicsBool(tr("Swap Eyes"), Config::GFX_STEREO_SWAP_EYES);
|
||||
@ -227,18 +226,7 @@ void EnhancementsWidget::LoadSettings()
|
||||
LoadPPShaders();
|
||||
|
||||
// Stereoscopy
|
||||
bool supports_stereoscopy = g_Config.backend_info.bSupportsGeometryShaders;
|
||||
bool supports_3dvision = g_Config.backend_info.bSupports3DVision;
|
||||
|
||||
if (m_3d_mode->currentIndex() == int(StereoMode::Nvidia3DVision) && !supports_3dvision)
|
||||
{
|
||||
m_3d_mode->setCurrentIndex(int(StereoMode::Off));
|
||||
|
||||
ModalMessageBox::information(this, tr("NVIDIA 3D Vision"),
|
||||
tr("NVIDIA 3D Vision is unsupported by the selected backend. "
|
||||
"Stereoscopy has been disabled."));
|
||||
}
|
||||
|
||||
const bool supports_stereoscopy = g_Config.backend_info.bSupportsGeometryShaders;
|
||||
m_3d_mode->setEnabled(supports_stereoscopy);
|
||||
m_3d_convergence->setEnabled(supports_stereoscopy);
|
||||
m_3d_depth->setEnabled(supports_stereoscopy);
|
||||
|
@ -496,21 +496,6 @@ void HotkeyScheduler::Run()
|
||||
Config::SetCurrent(Config::GFX_ENHANCE_POST_SHADER, "");
|
||||
}
|
||||
}
|
||||
|
||||
if (IsHotkey(HK_TOGGLE_STEREO_3DVISION))
|
||||
{
|
||||
if (Config::Get(Config::GFX_STEREO_MODE) != StereoMode::Nvidia3DVision)
|
||||
{
|
||||
if (Config::Get(Config::GFX_ENHANCE_POST_SHADER) == DUBOIS_ALGORITHM_SHADER)
|
||||
Config::SetCurrent(Config::GFX_ENHANCE_POST_SHADER, "");
|
||||
|
||||
Config::SetCurrent(Config::GFX_STEREO_MODE, StereoMode::Nvidia3DVision);
|
||||
}
|
||||
else
|
||||
{
|
||||
Config::SetCurrent(Config::GFX_STEREO_MODE, StereoMode::Off);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
const auto stereo_depth = Config::Get(Config::GFX_STEREO_DEPTH);
|
||||
|
Reference in New Issue
Block a user