[PATCH 4/5] d3d9: Get rid of an unnecessary wined3d_device_set_base_vertex_index() call.

Matteo Bruni mbruni at codeweavers.com
Tue Jun 5 17:32:39 CDT 2018


Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
---
It will be set again before calling the next draw_primitive() and
AFAICS can't be accessed in the meantime.

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

diff --git a/dlls/d3d9/device.c b/dlls/d3d9/device.c
index 4016b0ccaa2..e32bc14af5b 100644
--- a/dlls/d3d9/device.c
+++ b/dlls/d3d9/device.c
@@ -2946,7 +2946,6 @@ static HRESULT WINAPI d3d9_device_DrawIndexedPrimitiveUP(IDirect3DDevice9Ex *ifa
 
     wined3d_device_set_stream_source(device->wined3d_device, 0, NULL, 0, 0);
     wined3d_device_set_index_buffer(device->wined3d_device, NULL, WINED3DFMT_UNKNOWN, 0);
-    wined3d_device_set_base_vertex_index(device->wined3d_device, 0);
 
     if (SUCCEEDED(hr))
         d3d9_rts_flag_auto_gen_mipmap(device);
-- 
2.16.1




More information about the wine-devel mailing list