From 64e052c17cd992a1fc0f6c47281659418784e075 Mon Sep 17 00:00:00 2001 From: winesync Date: Tue, 12 Sep 2023 11:37:51 -0700 Subject: [PATCH] [WINESYNC] wined3d: Add support for setting multiple viewports. Signed-off-by: Nikolay Sivov Signed-off-by: Henri Verbeet Signed-off-by: Alexandre Julliard wine commit id 853f6538e4415c146ce56e8839b9bcd3bccff4fe by Nikolay Sivov --- dll/directx/wine/d3d8/device.c | 2 +- dll/directx/wine/d3d9/device.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dll/directx/wine/d3d8/device.c b/dll/directx/wine/d3d8/device.c index 65480876d3efe..3bdb278ec5f0d 100644 --- a/dll/directx/wine/d3d8/device.c +++ b/dll/directx/wine/d3d8/device.c @@ -1650,7 +1650,7 @@ static HRESULT WINAPI d3d8_device_SetViewport(IDirect3DDevice8 *iface, const D3D vp.min_z = viewport->MinZ; vp.max_z = viewport->MaxZ; - wined3d_device_set_viewport(device->wined3d_device, &vp); + wined3d_device_set_viewports(device->wined3d_device, 1, &vp); wined3d_mutex_unlock(); return D3D_OK; diff --git a/dll/directx/wine/d3d9/device.c b/dll/directx/wine/d3d9/device.c index d533afb9b3efe..5c0d6779c5d85 100644 --- a/dll/directx/wine/d3d9/device.c +++ b/dll/directx/wine/d3d9/device.c @@ -2068,7 +2068,7 @@ static HRESULT WINAPI d3d9_device_SetViewport(IDirect3DDevice9Ex *iface, const D vp.max_z = viewport->MaxZ; wined3d_mutex_lock(); - wined3d_device_set_viewport(device->wined3d_device, &vp); + wined3d_device_set_viewports(device->wined3d_device, 1, &vp); wined3d_mutex_unlock(); return D3D_OK;