mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 04:00:56 +00:00
d3dx9/tests: Fix a crash when d3d9 object can't be created.
This commit is contained in:
parent
8e4c196c14
commit
c944db5fc0
|
@ -4480,9 +4480,14 @@ static void test_D3DXSHProjectCubeMap(void)
|
|||
{-1.10743945e+3f, -9.43649292e+2f, 5.48424316e+2f, 1.65352710e+3f}},
|
||||
};
|
||||
|
||||
window = create_window();
|
||||
d3d = Direct3DCreate9(D3D_SDK_VERSION);
|
||||
ok(!!d3d, "Failed to create a D3D object.\n");
|
||||
if (!d3d)
|
||||
{
|
||||
skip("Failed to create a D3D object.\n");
|
||||
return;
|
||||
}
|
||||
|
||||
window = create_window();
|
||||
if (!(device = create_device(d3d, window)))
|
||||
{
|
||||
skip("Failed to create a D3D device, skipping tests.\n");
|
||||
|
|
Loading…
Reference in a new issue