vlc | branch: master | Steve Lhomme <rob...@ycbcr.xyz> | Fri Apr 13 12:29:21 
2018 +0200| [c58e998a572582d3392d41273f0ba573d4632504] | committer: Steve Lhomme

direct3d11: skip the region if the visible area is empty

not only if the texture area is empty

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

 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 4fb1525aec..3f1163803a 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -3085,7 +3085,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++) {

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to