Commit 020b86b0 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

d3dx9/tests: Avoid a TRUE:FALSE conditional expression.

parent 2d9659d3
...@@ -1953,7 +1953,7 @@ static void test_effect_parameter_value(IDirect3DDevice9 *device) ...@@ -1953,7 +1953,7 @@ static void test_effect_parameter_value(IDirect3DDevice9 *device)
hr = effect->lpVtbl->SetBool(effect, parameter, bvalue); hr = effect->lpVtbl->SetBool(effect, parameter, bvalue);
if (!res_desc->Elements && res_desc->Rows == 1 && res_desc->Columns == 1) if (!res_desc->Elements && res_desc->Rows == 1 && res_desc->Columns == 1)
{ {
bvalue = bvalue ? TRUE : FALSE; bvalue = TRUE;
set_number(expected_value, res_desc->Type, &bvalue, D3DXPT_BOOL); set_number(expected_value, res_desc->Type, &bvalue, D3DXPT_BOOL);
ok(hr == D3D_OK, "%u - %s: SetBool failed, got %#x, expected %#x\n", i, res_full_name, hr, D3D_OK); ok(hr == D3D_OK, "%u - %s: SetBool failed, got %#x, expected %#x\n", i, res_full_name, hr, D3D_OK);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment