Re: [PATCH 2/2] d3dx9: Implement D3DXCreateMesh and initial ID3DXMesh methods.
8 Sep
2010
8 Sep
'10
10:37 a.m.
You have leaks in your error paths. On 8 September 2010 02:33, Misha Koshelev <misha680(a)gmail.com> wrote:
+ /* Create vertex buffer */ + hr = IDirect3DDevice9_CreateVertexBuffer(device, + numvertices * sizeof(D3DXVECTOR3) * 2, + 0, /* Usage */ + fvf, + D3DPOOL_MANAGED, + &vertex_buffer, + NULL); Tests for that would be nice. E.g., I don't believe for a second the buffer length is really calculated that way, and does it really create an FVF vertex buffer?
5578
Age (days ago)
5578
Last active (days ago)
0 comments
1 participants
participants (1)
-
Henri Verbeet