ddraw: Do not fail if D3D is not available.

This commit is contained in:
Stefan Dösinger 2008-03-28 23:09:26 +01:00 committed by Alexandre Julliard
parent a29a229324
commit 4066c2e2fd
1 changed files with 1 additions and 1 deletions

View File

@ -949,8 +949,8 @@ static BOOL D3D1_createObjects(void)
ddsd.dwWidth = 256;
ddsd.dwHeight = 256;
hr = IDirectDraw_CreateSurface(DirectDraw1, &ddsd, &Surface1, NULL);
ok(hr==DD_OK, "CreateSurface returned: %x\n", hr);
if (!Surface1) {
skip("DDSCAPS_3DDEVICE surface not available\n");
return FALSE;
}