[vlc-commits] direct3d9: don' t use any texture filtering when the dimensions are the same

Steve Lhomme git at videolan.org
Tue Jul 26 13:25:02 CEST 2016


vlc/vlc-2.2 | branch: master | Steve Lhomme <robux4 at gmail.com> | Tue Jul 26 13:15:21 2016 +0200| [5bd216d755c6aff4529d9c1d6ca2e466b3610478] | committer: Jean-Baptiste Kempf

direct3d9: don't use any texture filtering when the dimensions are the same

On AMD cards the linear interpolation adds a green line when converting from
YV12 to RGB even though the dimensions are the same.

Fixes #17062

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
(cherry picked from commit 2ca67a601aad476358b0b45dd3f9872cfa567fe5)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=5bd216d755c6aff4529d9c1d6ca2e466b3610478
---

 modules/video_output/msw/direct3d.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/video_output/msw/direct3d.c b/modules/video_output/msw/direct3d.c
index c5de2df..67f9921 100644
--- a/modules/video_output/msw/direct3d.c
+++ b/modules/video_output/msw/direct3d.c
@@ -1456,7 +1456,7 @@ static int Direct3DImportPicture(vout_display_t *vd,
 
     /* Copy picture surface into texture surface
      * color space conversion happen here */
-    hr = IDirect3DDevice9_StretchRect(sys->d3ddev, source, &vd->sys->rect_src_clipped, destination, NULL, D3DTEXF_LINEAR);
+    hr = IDirect3DDevice9_StretchRect(sys->d3ddev, source, &vd->sys->rect_src_clipped, destination, NULL, D3DTEXF_NONE );
     IDirect3DSurface9_Release(destination);
     if (FAILED(hr)) {
         msg_Dbg(vd, "%s:%d (hr=0x%0lX)", __FUNCTION__, __LINE__, hr);



More information about the vlc-commits mailing list