[vlc-commits] direct3d11: fix the first call to D3D11_SetupQuad()

Steve Lhomme git at videolan.org
Fri Jan 18 14:47:31 CET 2019


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Jan 18 14:45:48 2019 +0100| [ea5d602326d04b420cc61678b471dba3ccd8d45f] | committer: Steve Lhomme

direct3d11: fix the first call to D3D11_SetupQuad()

It doesn't have the proper dimensions set in rect_src_clipped.

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

 modules/video_output/win32/direct3d11.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index fab7189779..2dc41eabfc 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -1565,6 +1565,8 @@ static int Direct3D11CreateFormatResources(vout_display_t *vd, const video_forma
         sys->picQuad.i_height = (sys->picQuad.i_height + 0x01) & ~0x01;
     }
 
+    UpdateRects(vd, true);
+
     video_format_t surface_fmt = *fmt;
     surface_fmt.i_width  = sys->picQuad.i_width;
     surface_fmt.i_height = sys->picQuad.i_height;
@@ -1595,8 +1597,6 @@ static int Direct3D11CreateFormatResources(vout_display_t *vd, const video_forma
         }
     }
 
-    UpdateRects(vd, true);
-
 #ifdef HAVE_ID3D11VIDEODECODER
     if (!is_d3d11_opaque(fmt->i_chroma) || sys->legacy_shader)
     {



More information about the vlc-commits mailing list