From b2fb3f1340ed7ceb9b3fc8ba4ddec107e3a41a13 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 9 Aug 2017 21:02:23 +0200 Subject: vo_opengl: hwdec_cuda: fix filtering mode Probably explains quality issues in some cases. --- video/out/opengl/hwdec_cuda.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video') diff --git a/video/out/opengl/hwdec_cuda.c b/video/out/opengl/hwdec_cuda.c index d02826701a..fd432ee7f8 100644 --- a/video/out/opengl/hwdec_cuda.c +++ b/video/out/opengl/hwdec_cuda.c @@ -201,7 +201,7 @@ static int reinit(struct gl_hwdec *hw, struct mp_image_params *params) p->plane_bytes[n] = gl_bytes_per_pixel(fmt->format, fmt->type); gl->BindTexture(GL_TEXTURE_2D, p->gl_textures[n]); - GLenum filter = GL_NEAREST; + GLenum filter = GL_LINEAR; gl->TexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, filter); gl->TexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, filter); gl->TexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); -- cgit v1.2.3