[vlc-devel] [PATCH] direct3d11: the quad always have the decoder size, no matter what
Steve Lhomme
robux4 at videolabs.io
Fri Dec 8 15:17:59 CET 2017
Fixes #19192
---
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 )
{
--
2.14.2
More information about the vlc-devel
mailing list