[vlc-commits] direct3d11: adjust the last pixel sampling based on the source format

Steve Lhomme git at videolan.org
Tue Jul 28 16:30:05 CEST 2020


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Jul 28 14:42:27 2020 +0200| [86ad5c108a01105badaae5e1819812438a2c9ddf] | committer: Steve Lhomme

direct3d11: adjust the last pixel sampling based on the source format

The last pixel displayed is the one based on the original i_weight.

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

 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 f16a063b07..f776aa9f72 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -1094,7 +1094,7 @@ static int Direct3D11CreateFormatResources(vout_display_t *vd, const video_forma
         .top    = vd->source.i_y_offset,
         .bottom = vd->source.i_y_offset + vd->source.i_visible_height,
     };
-    if (D3D11_SetupQuad( vd, sys->d3d_dev, &sys->texture_fmt, &sys->picQuad, &sys->display,
+    if (D3D11_SetupQuad( vd, sys->d3d_dev, &vd->source, &sys->picQuad, &sys->display,
                          &source_rect,
                          vd->source.orientation ) != VLC_SUCCESS) {
         msg_Err(vd, "Could not Create the main quad picture.");



More information about the vlc-commits mailing list