[vlc-commits] direct3d11: the quad always have the decoder size, no matter what
Steve Lhomme
git at videolan.org
Sun Dec 10 00:35:41 CET 2017
vlc/vlc-3.0 | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Fri Dec 8 15:17:59 2017 +0100| [8075a39abf0ae296b30e32677b606090208d4c9a] | 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>
(cherry picked from commit 020349accafe61de5197a9166e689f246057e31e)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=8075a39abf0ae296b30e32677b606090208d4c9a
---
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