[vlc-commits] direct3d1: don't use the module in winstore builds if there's no context
Steve Lhomme
git at videolan.org
Tue Jan 22 13:22:35 CET 2019
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Jan 22 13:07:40 2019 +0100| [0ee25b922851b899dbca2c69bf60ee5c9a9faba3] | committer: Steve Lhomme
direct3d1: don't use the module in winstore builds if there's no context
It only works in windowless mode
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0ee25b922851b899dbca2c69bf60ee5c9a9faba3
---
modules/video_output/win32/direct3d11.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index ba4687b142..a5f3579ab8 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -423,6 +423,11 @@ static int Open(vout_display_t *vd, const vout_display_cfg_t *cfg,
#if VLC_WINSTORE_APP
if (d3d11_ctx == NULL)
d3d11_ctx = var_InheritInteger(vd, "winrt-d3dcontext");
+ if (d3d11_ctx == NULL)
+ {
+ msg_Err(vd, "missing direct3d context for winstore");
+ goto error;
+ }
#endif
if (CommonInit(vd, d3d11_ctx != NULL, cfg))
goto error;
More information about the vlc-commits
mailing list