Commit f0c479d6 authored by Stefan Dösinger's avatar Stefan Dösinger Committed by Alexandre Julliard

d3d8: Destroy the window after the visual test.

parent 1fc1fe3c
......@@ -800,5 +800,10 @@ START_TEST(visual)
}
cleanup:
if(device_ptr) IDirect3DDevice8_Release(device_ptr);
if(device_ptr) {
D3DDEVICE_CREATION_PARAMETERS creation_parameters;
IDirect3DDevice8_GetCreationParameters(device_ptr, &creation_parameters);
IDirect3DDevice8_Release(device_ptr);
DestroyWindow(creation_parameters.hFocusWindow);
}
}
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