  modules/video_output/Makefile.am      |  12 +
  modules/video_output/msw/common.c     |  10 +-
  modules/video_output/msw/common.h     |  61 +++
- modules/video_output/msw/direct3d11.c | 871 ++++++++++++++++++++++++++++++++++
+ modules/video_output/msw/direct3d11.c | 863 ++++++++++++++++++++++++++++++++++
  modules/video_output/msw/events.c     |  10 +-
- 7 files changed, 961 insertions(+), 11 deletions(-)
+ 7 files changed, 953 insertions(+), 11 deletions(-)
  create mode 100644 modules/video_output/msw/direct3d11.c
 
 diff --git a/configure.ac b/configure.ac

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

+
+    ID3D11DeviceContext_IASetPrimitiveTopology(sys->d3dcontext, D3D11_PRIMITIVE_TOPOLOGY_TRIANGLELIST);
+
+    D3D11_TEXTURE2D_DESC texDesc;
+    memset(&texDesc, 0, sizeof(texDesc));
+    texDesc.Width = fmt->i_visible_width;
+    texDesc.Height = fmt->i_visible_height;
+    texDesc.MipLevels = texDesc.ArraySize = 1;
+    texDesc.Format = sys->d3dregion_format;
