From bebc323c6d6aab298f920cd462e7c0fe375925db Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 19 Dec 2014 18:32:51 +0100 Subject: vo_opengl: minor simplification The parameter to default_tex_params() is always the same. --- video/out/gl_video.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'video') diff --git a/video/out/gl_video.c b/video/out/gl_video.c index 5f8925bcb6..bb1e37b288 100644 --- a/video/out/gl_video.c +++ b/video/out/gl_video.c @@ -420,10 +420,10 @@ static const struct fmt_entry *find_tex_format(GL *gl, int bytes_per_comp, return &fmts[n_channels - 1 + (bytes_per_comp - 1) * 4]; } -static void default_tex_params(struct GL *gl, GLenum target, GLint filter) +static void default_tex_params(struct GL *gl, GLenum target) { - gl->TexParameteri(target, GL_TEXTURE_MIN_FILTER, filter); - gl->TexParameteri(target, GL_TEXTURE_MAG_FILTER, filter); + gl->TexParameteri(target, GL_TEXTURE_MIN_FILTER, GL_LINEAR); + gl->TexParameteri(target, GL_TEXTURE_MAG_FILTER, GL_LINEAR); gl->TexParameteri(target, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); gl->TexParameteri(target, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); } @@ -552,7 +552,7 @@ static bool fbotex_init(struct gl_video *p, struct fbotex *fbo, int w, int h, gl->TexImage2D(p->gl_target, 0, iformat, fbo->tex_w, fbo->tex_h, 0, GL_RGBA, GL_UNSIGNED_BYTE, NULL); - default_tex_params(gl, p->gl_target, GL_LINEAR); + default_tex_params(gl, p->gl_target); debug_check_gl(p, "after creating framebuffer texture"); @@ -1564,7 +1564,7 @@ static void init_video(struct gl_video *p, const struct mp_image_params *params) plane->tex_w, plane->tex_h, 0, plane->gl_format, plane->gl_type, NULL); - default_tex_params(gl, p->gl_target, GL_LINEAR); + default_tex_params(gl, p->gl_target); } MP_VERBOSE(p, "Texture for plane %d: %dx%d\n", -- cgit v1.2.3