Nikolay Sivov (@nsivov) commented about dlls/d2d1/device.c:
goto err; }
- if (!d2d_device_context_is_dxgi_target(render_target))
device->allow_get_dxgi_device = FALSE;
This is backwards. Having a flag is fine, but what I suggest is to add a helper replacing ID2D1Factory1_CreateDevice(), that would take another argument for this flag.