diff options
| author | NeoBrainX <NeoBrainX@googlemail.com> | 2010-11-28 15:23:51 +0000 |
|---|---|---|
| committer | NeoBrainX <NeoBrainX@googlemail.com> | 2010-11-28 15:23:51 +0000 |
| commit | fa5f206797b9ecb6847f303b08bf5773ac415450 (patch) | |
| tree | 205ffc5f227de6587abb4d91f9c5d7a144d41389 /Source/Core | |
| parent | c79f41d114801486304dc705708ac39a65c308f6 (diff) | |
DX11: Disable MSAA when using a GPU which only supports D3D 10.0.
10.0 level hardware can't create multisampled depth buffers which can be bound as shader resources as well, but we need that for e.g. EFB access or EFB copies.
Only multisampling the color buffer doesn't work either since color and depth targets must be using the same sample count.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6491 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/VideoUICommon/Src/VideoConfigDiag.cpp | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/Source/Core/VideoUICommon/Src/VideoConfigDiag.cpp b/Source/Core/VideoUICommon/Src/VideoConfigDiag.cpp index fb688c1e90..4f50fe4053 100644 --- a/Source/Core/VideoUICommon/Src/VideoConfigDiag.cpp +++ b/Source/Core/VideoUICommon/Src/VideoConfigDiag.cpp @@ -138,23 +138,30 @@ VideoConfigDiag::VideoConfigDiag(wxWindow* parent, const std::string &title, con const wxString af_choices[] = {wxT("1x"), wxT("2x"), wxT("4x"), wxT("8x"), wxT("16x")}; szr_enh->Add(new SettingChoice(page_general, vconfig.iMaxAnisotropy, 5, af_choices)); - if (vconfig.backend_info.AAModes.size()) - { - szr_enh->Add(new wxStaticText(page_general, -1, wxT("Anti-Aliasing:")), 1, wxALIGN_CENTER_VERTICAL, 0); - SettingChoice *const choice_aamode = new SettingChoice(page_general, vconfig.iMultisampleMode); + wxStaticText* const text_aamode = new wxStaticText(page_general, -1, wxT("Anti-Aliasing:")); + szr_enh->Add(text_aamode, 1, wxALIGN_CENTER_VERTICAL, 0); + SettingChoice* const choice_aamode = new SettingChoice(page_general, vconfig.iMultisampleMode); + if (vconfig.backend_info.AAModes.size()) + { std::vector<std::string>::const_iterator it = vconfig.backend_info.AAModes.begin(), itend = vconfig.backend_info.AAModes.end(); for (; it != itend; ++it) choice_aamode->AppendString(wxString::FromAscii(it->c_str())); - - choice_aamode->Select(vconfig.iMultisampleMode); - - szr_enh->Add(choice_aamode); } + else + { + choice_aamode->AppendString(wxString::FromAscii("(not supported)")); + vconfig.iMultisampleMode = 0; + choice_aamode->Disable(); + text_aamode->Disable(); + } + choice_aamode->Select(vconfig.iMultisampleMode); + szr_enh->Add(choice_aamode); + szr_enh->Add(new SettingCheckBox(page_general, wxT("Load Native Mipmaps"), vconfig.bUseNativeMips)); szr_enh->Add(new SettingCheckBox(page_general, wxT("EFB Scaled Copy"), vconfig.bCopyEFBScaled)); szr_enh->Add(new SettingCheckBox(page_general, wxT("Pixel Lighting"), vconfig.bEnablePixelLigting)); |
