[vlc-devel] [PATCH 2/2] vout:win32:common: no need to crop the source for D3D11

Steve Lhomme robux4 at videolabs.io
Mon Nov 27 13:38:13 CET 2017


We always give the right aligned texture size.

Fixes #18928
---
 modules/video_output/win32/common.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/modules/video_output/win32/common.c b/modules/video_output/win32/common.c
index d768043ed0..83807a4fad 100644
--- a/modules/video_output/win32/common.c
+++ b/modules/video_output/win32/common.c
@@ -294,12 +294,6 @@ void UpdateRects(vout_display_t *vd,
     /* Apply overlay hardware constraints */
     if (sys->use_overlay)
         AlignRect(&rect_src_clipped, sys->i_align_src_boundary, sys->i_align_src_size);
-#elif defined(MODULE_NAME_IS_direct3d11)
-    /* Needed at least with YUV content */
-    rect_src_clipped.left &= ~1;
-    rect_src_clipped.right &= ~1;
-    rect_src_clipped.top &= ~1;
-    rect_src_clipped.bottom &= ~1;
 #endif
 
 #ifndef NDEBUG
-- 
2.14.2



More information about the vlc-devel mailing list