Matteo Bruni (@Mystral) commented about dlls/d3d10_1/tests/d3d10_1.c:
- }
- hr = create_effect(fx_4_1_test_blend_state, 0, device, NULL, &effect);
- todo_wine
- ok(hr == S_OK, "Got unexpected hr %#lx.\n", hr);
- if (FAILED(hr)) goto done;
- v = effect->lpVtbl->GetVariableByName(effect, "blend_state");
- ok(v->lpVtbl->IsValid(v), "Invalid variable.\n");
- blend = v->lpVtbl->AsBlend(v);
- ok(blend->lpVtbl->IsValid(blend), "Invalid variable.\n");
- memset(&desc, 0, sizeof(desc));
- hr = blend->lpVtbl->GetBackingStore(blend, 0, &desc);
- ok(hr == S_OK, "Got unexpected hr %#lx.\n", hr);
- ok(desc.BlendEnable[0], "Unexpected value %d.\n", desc.BlendEnable[0]);
Nitpick: we usually print BOOL values with the "%#x" format string.