 +
 +    picsys->surface  = sys->d3dtexture;
 +    picsys->context  = sys->d3dcontext;
-+    picsys->fallback = NULL;
-+    picsys->pitch    = fmt->i_visible_width * 2 * 4;
 +
 +    picture_resource_t resource = { .p_sys = picsys };
 +    for (int i = 0; i < PICTURE_PLANE_MAX; i++)

+    scd.SampleDesc.Count = 1;
+    scd.SampleDesc.Quality = 0;
+    scd.Windowed = TRUE;
+    scd.BufferDesc.Width = fmt->i_visible_width * 2;
+    scd.BufferDesc.Height = fmt->i_visible_height;
+    scd.BufferDesc.Format = DXGI_FORMAT_R8G8B8A8_UNORM;
+

+    vout_display_sys_t *sys = vd->sys;
+
+    Direct3D11DestroyResources(vd);
+    ID3D11DeviceContext_Release(sys->d3dcontext);
+    ID3D11Device_Release(sys->d3ddevice);
+    msg_Dbg(vd, "Direct3D11 device adapter closed");
+}
