ddraw: Port light delete / add test for ddraw1.
Signed-off-by: Paul Gofman <gofmanp@gmail.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
ce67874d61
commit
56404595d5
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue