Commit 6b702cc8 authored by Saulius Krasuckas's avatar Saulius Krasuckas Committed by Alexandre Julliard

Skip testing on IDirect3D7::CreateDevice() failure.

parent 0e0ff518
...@@ -41,7 +41,7 @@ static void init_function_pointers(void) ...@@ -41,7 +41,7 @@ static void init_function_pointers(void)
} }
static void CreateDirect3D(void) static BOOL CreateDirect3D(void)
{ {
HRESULT rc; HRESULT rc;
DDSURFACEDESC2 ddsd; DDSURFACEDESC2 ddsd;
...@@ -67,7 +67,13 @@ static void CreateDirect3D(void) ...@@ -67,7 +67,13 @@ static void CreateDirect3D(void)
rc = IDirect3D7_CreateDevice(lpD3D, &IID_IDirect3DTnLHalDevice, lpDDS, rc = IDirect3D7_CreateDevice(lpD3D, &IID_IDirect3DTnLHalDevice, lpDDS,
&lpD3DDevice); &lpD3DDevice);
ok(rc==D3D_OK, "CreateDevice returned: %lx\n", rc); ok(rc==D3D_OK || rc==DDERR_NOPALETTEATTACHED, "CreateDevice returned: %lx\n", rc);
if (!lpD3DDevice) {
trace("IDirect3D7::CreateDevice() failed\n");
return FALSE;
}
return TRUE;
} }
static void ReleaseDirect3D(void) static void ReleaseDirect3D(void)
...@@ -197,7 +203,10 @@ START_TEST(d3d) ...@@ -197,7 +203,10 @@ START_TEST(d3d)
return; return;
} }
CreateDirect3D(); if(!CreateDirect3D()) {
trace("Skipping tests\n");
return;
}
LightTest(); LightTest();
ReleaseDirect3D(); ReleaseDirect3D();
} }
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