Commit 4dc152bd 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 26c2dc93
...@@ -3381,7 +3381,7 @@ static void test_surface_lock(void) ...@@ -3381,7 +3381,7 @@ static void test_surface_lock(void)
if (tests[i].caps & DDSCAPS_ZBUFFER) if (tests[i].caps & DDSCAPS_ZBUFFER)
{ {
ddsd.dwFlags |= DDSD_ZBUFFERBITDEPTH; ddsd.dwFlags |= DDSD_ZBUFFERBITDEPTH;
ddsd.dwZBufferBitDepth = z_depth; U2(ddsd).dwZBufferBitDepth = z_depth;
} }
ddsd.ddsCaps.dwCaps = tests[i].caps; ddsd.ddsCaps.dwCaps = tests[i].caps;
......
...@@ -4041,7 +4041,7 @@ static void test_surface_lock(void) ...@@ -4041,7 +4041,7 @@ static void test_surface_lock(void)
if (tests[i].caps & DDSCAPS_ZBUFFER) if (tests[i].caps & DDSCAPS_ZBUFFER)
{ {
ddsd.dwFlags |= DDSD_ZBUFFERBITDEPTH; ddsd.dwFlags |= DDSD_ZBUFFERBITDEPTH;
ddsd.dwZBufferBitDepth = z_depth; U2(ddsd).dwZBufferBitDepth = z_depth;
} }
ddsd.ddsCaps.dwCaps = tests[i].caps; ddsd.ddsCaps.dwCaps = tests[i].caps;
......
...@@ -4665,7 +4665,7 @@ static void test_surface_lock(void) ...@@ -4665,7 +4665,7 @@ static void test_surface_lock(void)
if (tests[i].caps & DDSCAPS_ZBUFFER) if (tests[i].caps & DDSCAPS_ZBUFFER)
{ {
ddsd.dwFlags |= DDSD_PIXELFORMAT; ddsd.dwFlags |= DDSD_PIXELFORMAT;
ddsd.ddpfPixelFormat = z_fmt; U4(ddsd).ddpfPixelFormat = z_fmt;
} }
ddsd.ddsCaps.dwCaps = tests[i].caps; ddsd.ddsCaps.dwCaps = tests[i].caps;
ddsd.ddsCaps.dwCaps2 = tests[i].caps2; ddsd.ddsCaps.dwCaps2 = tests[i].caps2;
......
...@@ -4551,7 +4551,7 @@ static void test_surface_lock(void) ...@@ -4551,7 +4551,7 @@ static void test_surface_lock(void)
if (tests[i].caps & DDSCAPS_ZBUFFER) if (tests[i].caps & DDSCAPS_ZBUFFER)
{ {
ddsd.dwFlags |= DDSD_PIXELFORMAT; ddsd.dwFlags |= DDSD_PIXELFORMAT;
ddsd.ddpfPixelFormat = z_fmt; U4(ddsd).ddpfPixelFormat = z_fmt;
} }
ddsd.ddsCaps.dwCaps = tests[i].caps; ddsd.ddsCaps.dwCaps = tests[i].caps;
ddsd.ddsCaps.dwCaps2 = tests[i].caps2; ddsd.ddsCaps.dwCaps2 = tests[i].caps2;
......
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