[vlc-commits] direct3d11: keep the swapchain number and format of buffers

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:52 2015 +0200| [48bb1a6af266ec65909fa61fac4042304d47c058] | committer: Jean-Baptiste Kempf

direct3d11: keep the swapchain number and format of buffers

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

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

 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 1f3e698..c6cc837 100644
--- a/modules/video_output/msw/direct3d11.c
+++ b/modules/video_output/msw/direct3d11.c
@@ -632,9 +632,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;



More information about the vlc-commits mailing list