Module: wine Branch: master Commit: 5ab8c2fdf8af0589bc9b2ffed152ebd6e0d0a5a9 URL: http://source.winehq.org/git/wine.git/?a=commit;h=5ab8c2fdf8af0589bc9b2ffed1...
Author: Józef Kucia joseph.kucia@gmail.com Date: Thu May 17 16:51:22 2012 +0200
d3dx9/tests: Do not release a cube texture if it wasn't created.
---
dlls/d3dx9_36/tests/texture.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/dlls/d3dx9_36/tests/texture.c b/dlls/d3dx9_36/tests/texture.c index 1314fa2..143d45b 100644 --- a/dlls/d3dx9_36/tests/texture.c +++ b/dlls/d3dx9_36/tests/texture.c @@ -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)