Commit 7929155e authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

ddraw/tests: Fix compilation on systems that don't support nameless unions.

parent 0152b0da
......@@ -5612,11 +5612,11 @@ static void test_lighting(void)
memset(&light_desc, 0, sizeof(light_desc));
light_desc.dwSize = sizeof(light_desc);
light_desc.dltType = D3DLIGHT_DIRECTIONAL;
U1(U(light_desc).dcvColor).r = 0.0f;
U2(U(light_desc).dcvColor).g = 0.0f;
U3(U(light_desc).dcvColor).b = 1.0f;
U4(U(light_desc).dcvColor).a = 1.0f;
light_desc.dvDirection.z = 1.0f;
U1(light_desc.dcvColor).r = 0.0f;
U2(light_desc.dcvColor).g = 0.0f;
U3(light_desc.dcvColor).b = 1.0f;
U4(light_desc.dcvColor).a = 1.0f;
U3(light_desc.dvDirection).z = 1.0f;
hr = IDirect3DLight_SetLight(light, &light_desc);
ok(SUCCEEDED(hr), "Failed to set light, hr %#x.\n", hr);
hr = IDirect3DViewport_AddLight(viewport, light);
......
......@@ -6587,11 +6587,11 @@ static void test_lighting(void)
memset(&light_desc, 0, sizeof(light_desc));
light_desc.dwSize = sizeof(light_desc);
light_desc.dltType = D3DLIGHT_DIRECTIONAL;
U1(U(light_desc).dcvColor).r = 0.0f;
U2(U(light_desc).dcvColor).g = 0.0f;
U3(U(light_desc).dcvColor).b = 1.0f;
U4(U(light_desc).dcvColor).a = 1.0f;
light_desc.dvDirection.z = 1.0f;
U1(light_desc.dcvColor).r = 0.0f;
U2(light_desc.dcvColor).g = 0.0f;
U3(light_desc.dcvColor).b = 1.0f;
U4(light_desc.dcvColor).a = 1.0f;
U3(light_desc.dvDirection).z = 1.0f;
hr = IDirect3DLight_SetLight(light, (D3DLIGHT *)&light_desc);
ok(SUCCEEDED(hr), "Failed to set light, hr %#x.\n", hr);
hr = IDirect3DViewport2_AddLight(viewport, light);
......
......@@ -3938,11 +3938,11 @@ static void test_lighting(void)
memset(&light_desc, 0, sizeof(light_desc));
light_desc.dwSize = sizeof(light_desc);
light_desc.dltType = D3DLIGHT_DIRECTIONAL;
U1(U(light_desc).dcvColor).r = 1.0f;
U2(U(light_desc).dcvColor).g = 1.0f;
U3(U(light_desc).dcvColor).b = 1.0f;
U4(U(light_desc).dcvColor).a = 1.0f;
light_desc.dvDirection.z = 1.0f;
U1(light_desc.dcvColor).r = 1.0f;
U2(light_desc.dcvColor).g = 1.0f;
U3(light_desc.dcvColor).b = 1.0f;
U4(light_desc.dcvColor).a = 1.0f;
U3(light_desc.dvDirection).z = 1.0f;
hr = IDirect3DLight_SetLight(light, (D3DLIGHT *)&light_desc);
ok(SUCCEEDED(hr), "Failed to set light, hr %#x.\n", hr);
hr = IDirect3DViewport3_AddLight(viewport, light);
......
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