Zebediah Figura : d3d9: Stop setting the device state in d3d9_device_SetFVF().

Alexandre Julliard julliard at winehq.org
Fri Feb 7 15:41:09 CST 2020


Module: wine
Branch: master
Commit: 95d74311e8cb4c02028ca0d735a8727a1ef0ceb4
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=95d74311e8cb4c02028ca0d735a8727a1ef0ceb4

Author: Zebediah Figura <z.figura12 at gmail.com>
Date:   Thu Feb  6 19:33:28 2020 -0600

d3d9: Stop setting the device state in d3d9_device_SetFVF().

Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/d3d9/device.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/dlls/d3d9/device.c b/dlls/d3d9/device.c
index c59d83b11a..2d5bc77ed7 100644
--- a/dlls/d3d9/device.c
+++ b/dlls/d3d9/device.c
@@ -3440,8 +3440,6 @@ static HRESULT WINAPI d3d9_device_SetFVF(IDirect3DDevice9Ex *iface, DWORD fvf)
     }
 
     wined3d_stateblock_set_vertex_declaration(device->update_state, decl);
-    if (!device->recording)
-        wined3d_device_set_vertex_declaration(device->wined3d_device, decl);
     device->has_vertex_declaration = TRUE;
     wined3d_mutex_unlock();
 




More information about the wine-cvs mailing list