18 Aug
2011
18 Aug
'11
6:05 p.m.
Hi, I noticed one small issue: On Saturday 13 August 2011 12:22:03 Michael Mc Donnell wrote:
+static HRESULT convert_vertex_buffer(ID3DXMesh *mesh_dst, ID3DXMesh *mesh_src) ... + hr = mesh_dst->lpVtbl->LockVertexBuffer(mesh_dst, D3DLOCK_DISCARD, (void**)&vb_dst); On paper, D3DLOCK_DISCARD is only valid on D3DUSAGE_DYNAMIC buffers. Wine and Windows <= WinVista don't enforce this. Win7 does, and it broke some apps that way.
I noticed a few more D3DLOCK_DISCARD locks in the mesh.c code.