Feb. 20, 2023
11:30 p.m.
Zebediah Figura (@zfigura) commented about dlls/ddraw/device.c:
+done: + wined3d_mutex_unlock(); + + /* Reset the buffer */ + device->ddraw_device_buffer.buffer_vertex_count = 0; + device->ddraw_device_buffer.buffer_indice_count = 0; + + return hr; +} + +static HRESULT ddraw_buffer_flush(struct d3d_device *device) { + /* Nothing to do if it is empty */ + if (! device->ddraw_device_buffer.buffer_vertex_count) return D3D_OK; + + return ddraw_buffer_flush_internal(device); +} This function isn't doing anything, is it? I.e. we could just combine it with ddraw_buffer_flush_internal().
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/2105#note_24904