Commit ecb2859d authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

ddraw: Destroy the swapchain in the DllMain() cleanup handler.

This is mostly to make sure there aren't any resources still being referenced by wined3d.
parent 3f455832
......@@ -945,6 +945,9 @@ DllMain(HINSTANCE hInstDLL,
IDirectDraw4_AddRef(&ddraw->IDirectDraw4_iface);
IDirectDraw7_AddRef(&ddraw->IDirectDraw7_iface);
if (ddraw->wined3d_swapchain)
ddraw_destroy_swapchain(ddraw);
/* Does a D3D device exist? Destroy it
* TODO: Destroy all Vertex buffers, Lights, Materials
* and execute buffers too
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment