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

Steve Lhomme git at videolan.org
Tue Jul 26 13:19:35 CEST 2016


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

direct3d9: don't use any texture filtering 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 35ccc1e88eb0dc98b9014c239cd062d291196d95)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 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