[PATCH 3/3] d3drm/tests: Add test for IDirect3DRM*::CreateDeviceFromD3D (try 4).
jem456.vasishta at gmail.com
Tue Jun 23 17:19:06 CDT 2015
> + hr = IDirect3D2_QueryInterface(d3d2, &IID_IDirectDraw,
> Why aren't you using the existing ddraw1 interface variable?
Ah, My bad. I must've missed the already existing variables, I probably
wrote this in a hurry to get the tests working.
> > + primary_surface_found = FALSE;
> > + hr = IDirectDraw_EnumSurfaces(ddraw, DDENUMSURFACES_ALL |
> > + NULL, NULL, surface_callback);
> > + ok(hr == DD_OK, "Failed to enumerate surfaces (hr = %x).\n", hr);
> > + ok(!primary_surface_found, "Primary surface shouldn't be created by
> > + IDirectDraw_Release(ddraw);
> > +
> > + hr = IDirectDrawSurface_GetAttachedSurface(surface, &caps, &ds);
> > + ok(hr == DD_OK, "Cannot get attached depth surface (hr = %x).\n",
> > +
> > + desc.dwSize = sizeof(desc);
> > + hr = IDirectDrawSurface_GetSurfaceDesc(ds, &desc);
> > + ok(hr == DD_OK, "Cannot get z surface desc structure (hr = %x).\n",
> I think here it would be interesting to confirm that the Z surface is
> the one created by create_device().
So use a global variable to store the z surface we created from
create_device? That should work I guess.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the wine-devel