On 24 February 2017 at 19:37, Matteo Bruni mbruni@codeweavers.com wrote:
@@ -4257,6 +4257,7 @@ static HRESULT WINAPI d3d7_CreateVertexBuffer(IDirect3D7 *iface, D3DVERTEXBUFFER { TRACE("Created vertex buffer %p.\n", object); *vertex_buffer = &object->IDirect3DVertexBuffer7_iface;
}IDirectDraw7_AddRef(&ddraw->IDirectDraw7_iface);
It seems more appropriate to do this in d3d_vertex_buffer_create() when storing the ddraw pointer.