Commit 56404595 authored by Paul Gofman's avatar Paul Gofman Committed by Alexandre Julliard

ddraw: Port light delete / add test for ddraw1.

parent ce67874d
......@@ -6213,6 +6213,11 @@ static void test_lighting(void)
ok(hr == D3DERR_LIGHTHASVIEWPORT, "Got unexpected hr %#x.\n", hr);
destroy_viewport(device, viewport2);
hr = IDirect3DViewport_DeleteLight(viewport, light);
ok(hr == D3D_OK, "Got unexpected hr %#x.\n", hr);
hr = IDirect3DViewport_AddLight(viewport, light);
ok(hr == D3D_OK, "Got unexpected hr %#x.\n", hr);
for (i = 0; i < ARRAY_SIZE(tests); ++i)
{
hr = IDirect3DDevice_SetMatrix(device, world_handle, tests[i].world_matrix);
......
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