ddraw: Only respect DDLOCK_NOOVERWRITE and DDLOCK_DISCARDCONTENTS on version 7 vertex buffers.

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Henri Verbeet 2018-01-03 16:06:56 +01:00 committed by Alexandre Julliard
parent 63ed42ac39
commit 3037097198
1 changed files with 3 additions and 0 deletions

View File

@ -164,6 +164,9 @@ static HRESULT WINAPI d3d_vertex_buffer7_Lock(IDirect3DVertexBuffer7 *iface,
TRACE("iface %p, flags %#x, data %p, data_size %p.\n", iface, flags, data, data_size); TRACE("iface %p, flags %#x, data %p, data_size %p.\n", iface, flags, data, data_size);
if (buffer->version != 7)
flags &= ~(DDLOCK_NOOVERWRITE | DDLOCK_DISCARDCONTENTS);
/* Writeonly: Pointless. Event: Unsupported by native according to the sdk /* Writeonly: Pointless. Event: Unsupported by native according to the sdk
* nosyslock: Not applicable * nosyslock: Not applicable
*/ */