[vlc-commits] direct3d11: fix getting the internal Swapchain in legacy UWP mode
Steve Lhomme
git at videolan.org
Fri May 10 09:07:13 CEST 2019
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri May 10 08:25:49 2019 +0200| [7d1da594a71a7a089e3fc92ce3d3a9eaea260412] | committer: Steve Lhomme
direct3d11: fix getting the internal Swapchain in legacy UWP mode
The "winrt-swapchain" variable was never set in display->dxgiswapChain
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7d1da594a71a7a089e3fc92ce3d3a9eaea260412
---
modules/video_output/win32/direct3d11.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index 8a2691e09b..035adf7e8a 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -441,11 +441,11 @@ static bool UpdateSwapchain( struct d3d11_local_swapchain *display, const struct
const d3d_format_t *newPixelFormat = NULL;
#if VLC_WINSTORE_APP
- IDXGISwapChain1* dxgiswapChain = var_InheritInteger(display->obj, "winrt-swapchain");
- if (dxgiswapChain != NULL)
+ display->dxgiswapChain = var_InheritInteger(display->obj, "winrt-swapchain");
+ if (display->dxgiswapChain != NULL)
{
DXGI_SWAP_CHAIN_DESC1 scd;
- if (SUCCEEDED(IDXGISwapChain1_GetDesc(dxgiswapChain, &scd)))
+ if (SUCCEEDED(IDXGISwapChain1_GetDesc(display->dxgiswapChain, &scd)))
{
for (const d3d_format_t *output_format = GetRenderFormatList();
output_format->name != NULL; ++output_format)
More information about the vlc-commits
mailing list