I'm trying to create a GDI device context from Direct2D but when I call CreateDCRenderTarget, it returns D2DERR_NO_HARDWARE_DEVICE error and my RenderTarget is null. Is there something wrong with the properties ? ID2D1Factory* _pDirect2dFactory = NULL; ID2D1DCRenderTarget *_pRenderTarget = NULL; D2D1_RENDER_TARGET_PROPERTIES props = D2D1::RenderTargetProperties( D2D1_RENDER_TARGET_TYPE_DEFAULT, D2D1::PixelFormat( DXGI_FORMAT_B8G8R8A8_UNORM, D2D1_ALPHA_MODE_IGNORE), 0, 0, [...] read more