[vlc-devel] [PATCH] direct3d9: don't use any texture filtering the dimensions are the same
Steve Lhomme
robux4 at videolabs.io
Tue Jul 26 13:15:21 CEST 2016
From: Steve Lhomme <robux4 at gmail.com>
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
---
modules/video_output/win32/direct3d9.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/video_output/win32/direct3d9.c b/modules/video_output/win32/direct3d9.c
index 3058e3c..9372875 100644
--- a/modules/video_output/win32/direct3d9.c
+++ b/modules/video_output/win32/direct3d9.c
@@ -1590,7 +1590,7 @@ static int Direct3D9ImportPicture(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, "Failed IDirect3DDevice9_StretchRect: source 0x%p 0x%0lx",
--
2.8.2
More information about the vlc-devel
mailing list