ddraw/tests: Fix compilation on systems that don't support nameless unions.
This commit is contained in:
parent
26c2dc93cb
commit
4dc152bd70
|
@ -3381,7 +3381,7 @@ static void test_surface_lock(void)
|
|||
if (tests[i].caps & DDSCAPS_ZBUFFER)
|
||||
{
|
||||
ddsd.dwFlags |= DDSD_ZBUFFERBITDEPTH;
|
||||
ddsd.dwZBufferBitDepth = z_depth;
|
||||
U2(ddsd).dwZBufferBitDepth = z_depth;
|
||||
}
|
||||
ddsd.ddsCaps.dwCaps = tests[i].caps;
|
||||
|
||||
|
|
|
@ -4041,7 +4041,7 @@ static void test_surface_lock(void)
|
|||
if (tests[i].caps & DDSCAPS_ZBUFFER)
|
||||
{
|
||||
ddsd.dwFlags |= DDSD_ZBUFFERBITDEPTH;
|
||||
ddsd.dwZBufferBitDepth = z_depth;
|
||||
U2(ddsd).dwZBufferBitDepth = z_depth;
|
||||
}
|
||||
ddsd.ddsCaps.dwCaps = tests[i].caps;
|
||||
|
||||
|
|
|
@ -4665,7 +4665,7 @@ static void test_surface_lock(void)
|
|||
if (tests[i].caps & DDSCAPS_ZBUFFER)
|
||||
{
|
||||
ddsd.dwFlags |= DDSD_PIXELFORMAT;
|
||||
ddsd.ddpfPixelFormat = z_fmt;
|
||||
U4(ddsd).ddpfPixelFormat = z_fmt;
|
||||
}
|
||||
ddsd.ddsCaps.dwCaps = tests[i].caps;
|
||||
ddsd.ddsCaps.dwCaps2 = tests[i].caps2;
|
||||
|
|
|
@ -4551,7 +4551,7 @@ static void test_surface_lock(void)
|
|||
if (tests[i].caps & DDSCAPS_ZBUFFER)
|
||||
{
|
||||
ddsd.dwFlags |= DDSD_PIXELFORMAT;
|
||||
ddsd.ddpfPixelFormat = z_fmt;
|
||||
U4(ddsd).ddpfPixelFormat = z_fmt;
|
||||
}
|
||||
ddsd.ddsCaps.dwCaps = tests[i].caps;
|
||||
ddsd.ddsCaps.dwCaps2 = tests[i].caps2;
|
||||
|
|
Loading…
Reference in New Issue