[vlc-commits] direct3d11: the quad always have the decoder size, no matter what

Steve Lhomme git at videolan.org
Fri Dec 8 16:14:30 CET 2017


vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Fri Dec  8 15:17:59 2017 +0100| [020349accafe61de5197a9166e689f246057e31e] | committer: Jean-Baptiste Kempf

direct3d11: the quad always have the decoder size, no matter what

Fixes #19192

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

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

diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index 532eccdaad..20f15ad0fd 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -1977,16 +1977,8 @@ static int Direct3D11CreateFormatResources(vout_display_t *vd, video_format_t *f
         }
     }
 
-    if (!is_d3d11_opaque(fmt->i_chroma) || sys->legacy_shader)
-    {
-        sys->picQuad.i_width  = fmt->i_visible_width;
-        sys->picQuad.i_height = fmt->i_visible_height;
-    }
-    else
-    {
-        sys->picQuad.i_width  = fmt->i_width;
-        sys->picQuad.i_height = fmt->i_height;
-    }
+    sys->picQuad.i_width  = fmt->i_width;
+    sys->picQuad.i_height = fmt->i_height;
     if ( sys->picQuadConfig->formatTexture != DXGI_FORMAT_R8G8B8A8_UNORM &&
          sys->picQuadConfig->formatTexture != DXGI_FORMAT_B5G6R5_UNORM )
     {



More information about the vlc-commits mailing list