[PATCH 6/7] d3d9: Handle stateblocks in d3d9_device_SetFVF().
Zebediah Figura
z.figura12 at gmail.com
Sat Jun 22 10:29:21 CDT 2019
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
dlls/d3d9/device.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/dlls/d3d9/device.c b/dlls/d3d9/device.c
index 403022d03f4..3bfbe38e42d 100644
--- a/dlls/d3d9/device.c
+++ b/dlls/d3d9/device.c
@@ -3355,7 +3355,10 @@ static HRESULT WINAPI d3d9_device_SetFVF(IDirect3DDevice9Ex *iface, DWORD fvf)
return D3DERR_DRIVERINTERNALERROR;
}
- wined3d_device_set_vertex_declaration(device->wined3d_device, decl);
+ if (device->recording)
+ wined3d_stateblock_set_vertex_declaration(device->recording, decl);
+ else
+ wined3d_device_set_vertex_declaration(device->wined3d_device, decl);
device->has_vertex_declaration = TRUE;
wined3d_mutex_unlock();
--
2.21.0
More information about the wine-devel
mailing list