[vlc-commits] direct3d11: compute the quad position as soon as we know its dimensions
Steve Lhomme
git at videolan.org
Sun Dec 17 23:36:41 CET 2017
vlc/vlc-3.0 | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Fri Dec 15 13:09:20 2017 +0100| [945c3653df418825201439de845ca37b15bd6685] | committer: Jean-Baptiste Kempf
direct3d11: compute the quad position as soon as we know its dimensions
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
(cherry picked from commit 7cbdd3b36fba148d2cfb6a9beb0341de43ea1804)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=945c3653df418825201439de845ca37b15bd6685
---
modules/video_output/win32/direct3d11.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index c0cad8d612..1b278b16e9 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -2049,6 +2049,10 @@ static int Direct3D11CreateFormatResources(vout_display_t *vd, const video_forma
sys->picQuad.i_height = (sys->picQuad.i_height + 0x01) & ~0x01;
}
+ BEFORE_UPDATE_RECTS;
+ UpdateRects(vd, NULL, true);
+ AFTER_UPDATE_RECTS;
+
#ifdef HAVE_ID3D11VIDEODECODER
if (!is_d3d11_opaque(fmt->i_chroma) || sys->legacy_shader)
{
@@ -2135,10 +2139,6 @@ static int Direct3D11CreateGenericResources(vout_display_t *vd)
ID3D11DepthStencilState_Release(pDepthStencilState);
}
- BEFORE_UPDATE_RECTS;
- UpdateRects(vd, NULL, true);
- AFTER_UPDATE_RECTS;
-
hr = UpdateBackBuffer(vd);
if (FAILED(hr)) {
msg_Err(vd, "Could not update the backbuffer. (hr=0x%lX)", hr);
More information about the vlc-commits
mailing list