evr: Use D3DCREATE_MULTITHREADED device creation flag.

This commit is contained in:
Rémi Bernon 2024-01-17 15:15:25 +01:00 committed by Alexandre Julliard
parent 7b58ce5a02
commit 721b7f5df6
Notes: Alexandre Julliard 2024-11-19 23:23:33 +01:00
Approved-by: Nikolay Sivov (@nsivov)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/wine/merge_requests/6847
2 changed files with 2 additions and 1 deletions

View file

@ -2136,7 +2136,7 @@ static HRESULT video_presenter_init_d3d(struct video_presenter *presenter)
present_params.Flags = D3DPRESENTFLAG_VIDEO;
present_params.PresentationInterval = D3DPRESENT_INTERVAL_IMMEDIATE;
hr = IDirect3D9_CreateDevice(d3d, D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, GetDesktopWindow(),
D3DCREATE_HARDWARE_VERTEXPROCESSING, &present_params, &device);
D3DCREATE_HARDWARE_VERTEXPROCESSING | D3DCREATE_MULTITHREADED, &present_params, &device);
IDirect3D9_Release(d3d);

View file

@ -2476,6 +2476,7 @@ static void test_presenter_video_window(void)
hr = IDirect3DDevice9_GetCreationParameters(d3d_device, &device_params);
ok(hr == S_OK, "Unexpected hr %#lx.\n", hr);
ok(device_params.hFocusWindow == GetDesktopWindow(), "Unexpected window %p.\n", device_params.hFocusWindow);
ok(device_params.BehaviorFlags & D3DCREATE_MULTITHREADED, "Unexpected flags %#lx.\n", device_params.BehaviorFlags);
hr = IDirect3DDevice9_GetSwapChain(d3d_device, 0, &swapchain);
ok(hr == S_OK, "Unexpected hr %#lx.\n", hr);