d3dx9/tests: Do not release a cube texture if it wasn't created.
This commit is contained in:
parent
8ccf747d6a
commit
5ab8c2fdf8
|
@ -734,11 +734,10 @@ static void test_D3DXFilterTexture(IDirect3DDevice9 *device)
|
|||
|
||||
hr = D3DXFilterTexture((IDirect3DBaseTexture9*) cubetex, NULL, 5, D3DX_FILTER_NONE); /* Invalid miplevel */
|
||||
ok(hr == D3DERR_INVALIDCALL, "D3DXFilterTexture returned %#x, expected %#x\n", hr, D3DERR_INVALIDCALL);
|
||||
IDirect3DCubeTexture9_Release(cubetex);
|
||||
}
|
||||
else
|
||||
skip("Failed to create texture\n");
|
||||
|
||||
IDirect3DCubeTexture9_Release(cubetex);
|
||||
}
|
||||
|
||||
static BOOL color_match(const DWORD *value, const DWORD *expected)
|
||||
|
|
Loading…
Reference in New Issue