fix duplicate entries in lists when opening d3d config multiple times.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4433 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
1bf3c00683
commit
f82e5eb673
|
@ -136,9 +136,12 @@ void InitPP(int adapter, int f, int aa_mode, D3DPRESENT_PARAMETERS *pp)
|
||||||
void Enumerate()
|
void Enumerate()
|
||||||
{
|
{
|
||||||
numAdapters = D3D::D3D->GetAdapterCount();
|
numAdapters = D3D::D3D->GetAdapterCount();
|
||||||
|
|
||||||
for (int i = 0; i < std::min(MAX_ADAPTERS, numAdapters); i++)
|
for (int i = 0; i < std::min(MAX_ADAPTERS, numAdapters); i++)
|
||||||
{
|
{
|
||||||
Adapter &a = adapters[i];
|
Adapter &a = adapters[i];
|
||||||
|
a.aa_levels.clear();
|
||||||
|
a.resolutions.clear();
|
||||||
D3D::D3D->GetAdapterIdentifier(i, 0, &a.ident);
|
D3D::D3D->GetAdapterIdentifier(i, 0, &a.ident);
|
||||||
bool isNvidia = a.ident.VendorId == VENDOR_NVIDIA;
|
bool isNvidia = a.ident.VendorId == VENDOR_NVIDIA;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue