[vlc-devel] [PATCH 3/6] direct3d11: keep the swapchain number and format of buffers
Steve Lhomme
robux4 at gmail.com
Wed Jun 17 12:20:52 CEST 2015
---
modules/video_output/msw/direct3d11.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/modules/video_output/msw/direct3d11.c b/modules/video_output/msw/direct3d11.c
index 7f3e30a..19ee9b3 100644
--- a/modules/video_output/msw/direct3d11.c
+++ b/modules/video_output/msw/direct3d11.c
@@ -637,9 +637,8 @@ static HRESULT UpdateBackBuffer(vout_display_t *vd)
sys->d3ddepthStencilView = NULL;
}
- hr = IDXGISwapChain_ResizeBuffers(sys->dxgiswapChain, 1, RECTWidth(sys->rect_dest_clipped),
- RECTHeight(sys->rect_dest_clipped),
- DXGI_FORMAT_R8G8B8A8_UNORM, 0);
+ hr = IDXGISwapChain_ResizeBuffers(sys->dxgiswapChain, 0, i_width, i_height,
+ DXGI_FORMAT_UNKNOWN, 0);
if (FAILED(hr)) {
msg_Err(vd, "Failed to resize the backbuffer. (hr=0x%lX)", hr);
return hr;
--
2.4.3
More information about the vlc-devel
mailing list