[1/2] d3dx9/tests: Do not release a cube texture if it wasn't created.
Józef Kucia
joseph.kucia at gmail.com
Thu May 17 09:51:22 CDT 2012
---
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)
--
1.7.8.6
More information about the wine-patches
mailing list