diff options
author | wm4 <wm4@nowhere> | 2017-08-09 21:02:23 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-08-09 21:02:23 +0200 |
commit | b2fb3f1340ed7ceb9b3fc8ba4ddec107e3a41a13 (patch) | |
tree | 121067ba35f76774403d20e553725f7f97f74a66 /video/out | |
parent | 9c5dcf93989bdfccd4779c2f19282a23703ee4f7 (diff) | |
download | mpv-b2fb3f1340ed7ceb9b3fc8ba4ddec107e3a41a13.tar.bz2 mpv-b2fb3f1340ed7ceb9b3fc8ba4ddec107e3a41a13.tar.xz |
vo_opengl: hwdec_cuda: fix filtering mode
Probably explains quality issues in some cases.
Diffstat (limited to 'video/out')
-rw-r--r-- | video/out/opengl/hwdec_cuda.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |