gsdx-d3d11/gui: Don't display Reference Device in available Adapters in release builds. Display it only on debug builds.

It is used for debugging only.
This commit is contained in:
lightningterror 2019-06-16 21:25:25 +02:00
parent a936cd9eb1
commit e89f46139b
1 changed files with 2 additions and 0 deletions

View File

@ -67,7 +67,9 @@ std::vector<GSSettingsDlg::Adapter> GSSettingsDlg::EnumerateD3D11Adapters()
std::vector<Adapter> adapters { std::vector<Adapter> adapters {
{"Default Hardware Device", "default", GSUtil::CheckDirect3D11Level(nullptr, D3D_DRIVER_TYPE_HARDWARE)}, {"Default Hardware Device", "default", GSUtil::CheckDirect3D11Level(nullptr, D3D_DRIVER_TYPE_HARDWARE)},
#ifdef _DEBUG
{"Reference Device", "ref", GSUtil::CheckDirect3D11Level(nullptr, D3D_DRIVER_TYPE_REFERENCE)}, {"Reference Device", "ref", GSUtil::CheckDirect3D11Level(nullptr, D3D_DRIVER_TYPE_REFERENCE)},
#endif
}; };
CComPtr<IDXGIAdapter1> adapter; CComPtr<IDXGIAdapter1> adapter;