Commit db0aabca authored by Alexandre Julliard's avatar Alexandre Julliard

ddraw: Don't crash in d3d test if OpenGL is missing.

parent 0811851b
......@@ -58,6 +58,7 @@ static BOOL CreateDirect3D(void)
ok(rc==DD_OK, "SetCooperativeLevel returned: %lx\n", rc);
rc = IDirectDraw7_QueryInterface(lpDD, &IID_IDirect3D7, (void**) &lpD3D);
if (rc == E_NOINTERFACE) return FALSE;
ok(rc==DD_OK, "QueryInterface returned: %lx\n", rc);
memset(&ddsd, 0, sizeof(ddsd));
......
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