Commit 50c54117 authored by Sven Baars's avatar Sven Baars Committed by Alexandre Julliard

ddraw/tests: Move a misplaced assignment (Coverity).

parent 7ed4810a
......@@ -1342,9 +1342,9 @@ static void test_depth_blit(const GUID *device_guid)
hr = IDirectDrawSurface_GetSurfaceDesc(ds1, &ddsd_existing);
ok(hr == D3D_OK, "Got unexpected hr %#x.\n", hr);
ddsd_new.dwFlags = DDSD_CAPS | DDSD_WIDTH | DDSD_HEIGHT | DDSD_PIXELFORMAT;
ddsd_new.ddsCaps.dwCaps = DDSCAPS_ZBUFFER;
if (is_software_device_type(device_guid))
ddsd_new.ddsCaps.dwCaps |= DDSCAPS_SYSTEMMEMORY;
ddsd_new.ddsCaps.dwCaps = DDSCAPS_ZBUFFER;
ddsd_new.dwWidth = ddsd_existing.dwWidth;
ddsd_new.dwHeight = ddsd_existing.dwHeight;
ddsd_new.ddpfPixelFormat = ddsd_existing.ddpfPixelFormat;
......
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