[vlc-devel] [PATCH 4/6] direct3d11: the viewport size is set on the swapchain update
Steve Lhomme
robux4 at gmail.com
Wed Jun 17 12:20:53 CEST 2015
---
modules/video_output/msw/direct3d11.c | 10 ----------
1 file changed, 10 deletions(-)
diff --git a/modules/video_output/msw/direct3d11.c b/modules/video_output/msw/direct3d11.c
index 19ee9b3..d7210ed 100644
--- a/modules/video_output/msw/direct3d11.c
+++ b/modules/video_output/msw/direct3d11.c
@@ -1228,16 +1228,6 @@ static int Direct3D11CreateResources(vout_display_t *vd, video_format_t *fmt)
ID3D11DepthStencilState_Release(pDepthStencilState);
}
- D3D11_VIEWPORT vp;
- vp.Width = (FLOAT)fmt->i_visible_width;
- vp.Height = (FLOAT)fmt->i_visible_height;
- vp.MinDepth = 0.0f;
- vp.MaxDepth = 1.0f;
- vp.TopLeftX = 0;
- vp.TopLeftY = 0;
-
- ID3D11DeviceContext_RSSetViewports(sys->d3dcontext, 1, &vp);
-
ID3DBlob* pVSBlob = NULL;
/* TODO : Match the version to the D3D_FEATURE_LEVEL */
--
2.4.3
More information about the vlc-devel
mailing list