mirror of https://github.com/mpv-player/mpv
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:
parent
6e25934a8c
commit
6f77444f6c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue