mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-20 19:54:19 +01:00
[d3d9] Only add unique modes to mode list
This commit is contained in:
parent
0cd4165658
commit
1568c263fb
@ -788,7 +788,8 @@ namespace dxvk {
|
||||
// Fix up the D3DFORMAT to match what we are enumerating
|
||||
mode.Format = static_cast<D3DFORMAT>(Format);
|
||||
|
||||
m_modes.push_back(mode);
|
||||
if (std::count(m_modes.begin(), m_modes.end(), mode) == 0)
|
||||
m_modes.push_back(mode);
|
||||
}
|
||||
|
||||
// Sort display modes by width, height and refresh rate,
|
||||
|
Loading…
x
Reference in New Issue
Block a user