[vlc-commits] direct3d11: the viewport size is set on the swapchain update

Steve Lhomme git at videolan.org
Wed Jun 17 14:21:19 CEST 2015


vlc | branch: master | Steve Lhomme <robux4 at gmail.com> | Wed Jun 17 12:20:53 2015 +0200| [87cb6e2647fad344f673106a92277c436b84a0cc] | committer: Jean-Baptiste Kempf

direct3d11: the viewport size is set on the swapchain update

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=87cb6e2647fad344f673106a92277c436b84a0cc
---

 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 c6cc837..2b515ca 100644
--- a/modules/video_output/msw/direct3d11.c
+++ b/modules/video_output/msw/direct3d11.c
@@ -1221,16 +1221,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 */



More information about the vlc-commits mailing list