Commit 969e7239 authored by Matteo Bruni's avatar Matteo Bruni Committed by Alexandre Julliard

ddraw/tests: Fix ddraw2 test_lighting() cleanup code.

parent 4b559f02
...@@ -6639,6 +6639,8 @@ static void test_lighting(void) ...@@ -6639,6 +6639,8 @@ static void test_lighting(void)
ok(color == tests[i].expected, "%s has color 0x%08x.\n", tests[i].message, color); ok(color == tests[i].expected, "%s has color 0x%08x.\n", tests[i].message, color);
} }
hr = IDirect3DViewport2_DeleteLight(viewport, light);
ok(SUCCEEDED(hr), "Failed to remove a light from the viewport, hr %#x.\n", hr);
IDirect3DLight_Release(light); IDirect3DLight_Release(light);
destroy_material(material); destroy_material(material);
destroy_viewport(device, viewport); destroy_viewport(device, viewport);
...@@ -6646,7 +6648,7 @@ static void test_lighting(void) ...@@ -6646,7 +6648,7 @@ static void test_lighting(void)
refcount = IDirect3DDevice2_Release(device); refcount = IDirect3DDevice2_Release(device);
ok(!refcount, "Device has %u references left.\n", refcount); ok(!refcount, "Device has %u references left.\n", refcount);
IDirect3D2_Release(d3d); IDirect3D2_Release(d3d);
IDirectDraw2_Release(ddraw); refcount = IDirectDraw2_Release(ddraw);
ok(!refcount, "Ddraw object has %u references left.\n", refcount); ok(!refcount, "Ddraw object has %u references left.\n", refcount);
DestroyWindow(window); DestroyWindow(window);
} }
......
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