d3dx9/tests: Get rid of a redundant NULL check in test_effect_states().

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Henri Verbeet 2016-03-11 16:01:41 +01:00 committed by Alexandre Julliard
parent 20f7abf667
commit d708f309c8
1 changed files with 1 additions and 2 deletions

View File

@ -3001,8 +3001,7 @@ static void test_effect_states(IDirect3DDevice9 *device)
hr = IDirect3DDevice9_SetRenderState(device, D3DRS_BLENDOP, 3);
ok(hr == D3D_OK, "Got result %x, expected 0 (D3D_OK).\n", hr);
if (effect)
effect->lpVtbl->Release(effect);
effect->lpVtbl->Release(effect);
hr = IDirect3DDevice9_GetRenderState(device, D3DRS_BLENDOP, &value);
ok(hr == D3D_OK, "Got result %x, expected 0 (D3D_OK).\n", hr);