From 5ab8c2fdf8af0589bc9b2ffed152ebd6e0d0a5a9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=B3zef=20Kucia?= Date: Thu, 17 May 2012 16:51:22 +0200 Subject: [PATCH] d3dx9/tests: Do not release a cube texture if it wasn't created. --- dlls/d3dx9_36/tests/texture.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dlls/d3dx9_36/tests/texture.c b/dlls/d3dx9_36/tests/texture.c index 1314fa2037..143d45b36b 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) -- 2.32.0.93.g670b81a890