mirror of
https://github.com/mpv-player/mpv
synced 2025-01-05 06:30:06 +00:00
vo_opengl: hwdec_cuda: fix filtering mode
Probably explains quality issues in some cases.
This commit is contained in:
parent
9c5dcf9398
commit
b2fb3f1340
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user