[vlc-commits] direct3d11: skip the region if the visible area is empty

Steve Lhomme git at videolan.org
Fri Apr 13 13:01:25 CEST 2018


vlc/vlc-3.0 | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Apr 13 12:29:21 2018 +0200| [52c6e535678a48c279e2ab02e726c0c8112c0642] | committer: Hugo Beauzée-Luyssen

direct3d11: skip the region if the visible area is empty

not only if the texture area is empty

(cherry picked from commit c58e998a572582d3392d41273f0ba573d4632504)
Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

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

 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 d5b7b25b99..39bb746ff1 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -3082,7 +3082,7 @@ static int Direct3D11MapSubpicture(vout_display_t *vd, int *subpicture_region_co
 
     int i = 0;
     for (subpicture_region_t *r = subpicture->p_region; r; r = r->p_next, i++) {
-        if (!r->fmt.i_width || !r->fmt.i_height)
+        if (!r->fmt.i_visible_width || !r->fmt.i_visible_height)
             continue; // won't render anything, keep the cache for later
 
         for (int j = 0; j < sys->d3dregion_count; j++) {



More information about the vlc-commits mailing list