vo_opengl: get rid of weird double-bind in pass_read_fbo

This logic doesn't really make sense. copy_img_tex already binds the
texture, so why would we bind it a second time? Furthermore, nothing
actually uses this return value. Must have been some left-over artifact
of a previous iteration of this function. Anyway, it's harmless, just
nonsensical. So remove it.
This commit is contained in:
Niklas Haas 2017-07-05 01:31:31 +02:00
parent 6e25934a8c
commit 6f77444f6c
No known key found for this signature in database
GPG Key ID: 9A09076581B27402
1 changed files with 2 additions and 4 deletions

View File

@ -1989,13 +1989,11 @@ static void pass_read_video(struct gl_video *p)
}
// Utility function that simply binds an FBO and reads from it, without any
// transformations. Returns the ID of the texture unit it was bound to
static int pass_read_fbo(struct gl_video *p, struct fbotex *fbo)
// transformations.
static void pass_read_fbo(struct gl_video *p, struct fbotex *fbo)
{
struct img_tex tex = img_tex_fbo(fbo, PLANE_RGB, p->components);
copy_img_tex(p, &(int){0}, tex);
return pass_bind(p, tex);
}
// yuv conversion, and any other conversions before main up/down-scaling