[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:23:51 CEST 2016
vlc | branch: master | Steve Lhomme <robux4 at gmail.com> | Tue Jul 26 13:15:21 2016 +0200| [2ca67a601aad476358b0b45dd3f9872cfa567fe5] | 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>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2ca67a601aad476358b0b45dd3f9872cfa567fe5
---
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",
More information about the vlc-commits
mailing list