You have leaks in your error paths.
On 8 September 2010 02:33, Misha Koshelev misha680@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?