Commit 87cb6e26 authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf

direct3d11: the viewport size is set on the swapchain update

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 48bb1a6a
......@@ -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 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment