[vlc-commits] direct3d11: fix direct rendering of software decoders

Steve Lhomme git at videolan.org
Thu Dec 20 13:40:56 CET 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Dec 20 13:39:21 2018 +0100| [12daab981896f287b39bd9c7416f943b1bd7b864] | committer: Steve Lhomme

direct3d11: fix direct rendering of software decoders

After 931080d3c6ca16ee32b1d98fd3ea3ddf6a7adde4

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

 modules/video_output/win32/direct3d11.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index 231e13804e..fa7f8415bc 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -1487,7 +1487,7 @@ static int Direct3D11CreateFormatResources(vout_display_t *vd, const video_forma
         sys->picQuad.i_height = (sys->picQuad.i_height + 0x01) & ~0x01;
     }
 
-    video_format_t surface_fmt = vd->fmt;
+    video_format_t surface_fmt = *fmt;
     surface_fmt.i_width  = sys->picQuad.i_width;
     surface_fmt.i_height = sys->picQuad.i_height;
 



More information about the vlc-commits mailing list