Commit 9541aef0 authored by Joshua Ashton's avatar Joshua Ashton 🐸

[d3d9] Ensure D3DDISPLAYMODEEX we use to call the Ex funcs has its size set correctly

parent 61b6f8f2
Pipeline #983 passed with stage
in 4 minutes and 7 seconds
......@@ -76,7 +76,8 @@ namespace dxvk {
HRESULT STDMETHODCALLTYPE D3D9InterfaceEx::GetAdapterDisplayMode(UINT Adapter, D3DDISPLAYMODE* pMode) {
if (auto* adapter = GetAdapter(Adapter)) {
D3DDISPLAYMODEEX modeEx;
D3DDISPLAYMODEEX modeEx = { };
modeEx.Size = sizeof(D3DDISPLAYMODEEX);
HRESULT hr = adapter->GetAdapterDisplayModeEx(&modeEx, nullptr);
if (FAILED(hr))
......@@ -224,7 +225,8 @@ namespace dxvk {
filter.ScanLineOrdering = D3DSCANLINEORDERING_PROGRESSIVE;
filter.Size = sizeof(D3DDISPLAYMODEFILTER);
D3DDISPLAYMODEEX modeEx;
D3DDISPLAYMODEEX modeEx = { };
modeEx.Size = sizeof(D3DDISPLAYMODEEX);
HRESULT hr = this->EnumAdapterModesEx(Adapter, &filter, Mode, &modeEx);
if (FAILED(hr))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment