Commit 67307a9c 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 f191f26c
......@@ -3320,7 +3320,7 @@ static void test_lighting_interface_versions(void)
memset(&mat_desc, 0, sizeof(mat_desc));
mat_desc.dwSize = sizeof(mat_desc);
mat_desc.dcvEmissive.g = 1.0f;
U2(U3(mat_desc).dcvEmissive).g = 1.0f;
hr = IDirect3D2_CreateMaterial(d3d, &emissive, NULL);
ok(SUCCEEDED(hr), "Failed to create material, hr %#x.\n", hr);
hr = IDirect3DMaterial2_SetMaterial(emissive, &mat_desc);
......
......@@ -3633,7 +3633,7 @@ static void test_lighting_interface_versions(void)
memset(&mat_desc, 0, sizeof(mat_desc));
mat_desc.dwSize = sizeof(mat_desc);
mat_desc.dcvEmissive.g = 1.0f;
U2(U3(mat_desc).dcvEmissive).g = 1.0f;
hr = IDirect3D3_CreateMaterial(d3d, &emissive, NULL);
ok(SUCCEEDED(hr), "Failed to create material, hr %#x.\n", hr);
hr = IDirect3DMaterial3_SetMaterial(emissive, &mat_desc);
......
......@@ -3448,7 +3448,7 @@ static void test_lighting_interface_versions(void)
ok(SUCCEEDED(hr), "Failed to get render target, hr %#x.\n", hr);
memset(&material, 0, sizeof(material));
material.emissive.g = 1.0f;
U2(U3(material).emissive).g = 1.0f;
hr = IDirect3DDevice7_SetMaterial(device, &material);
ok(SUCCEEDED(hr), "Failed set material, hr %#x.\n", hr);
hr = IDirect3DDevice7_SetRenderState(device, D3DRENDERSTATE_ZENABLE, D3DZB_FALSE);
......
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