mirror of
https://github.com/mpv-player/mpv
synced 2025-04-07 01:53:06 +00:00
vo_opengl: use correct gl_target variable
p->gl_target and plane->gl_target are always the same value here, but semantically plane->gl_target is the correct one.
This commit is contained in:
parent
57c31f4130
commit
c01aaabb3e
@ -2446,8 +2446,8 @@ static void gl_video_upload_image(struct gl_video *p, struct mp_image *mpi)
|
|||||||
if (pbo)
|
if (pbo)
|
||||||
gl->BindBuffer(GL_PIXEL_UNPACK_BUFFER, plane->gl_buffer);
|
gl->BindBuffer(GL_PIXEL_UNPACK_BUFFER, plane->gl_buffer);
|
||||||
gl->ActiveTexture(GL_TEXTURE0 + n);
|
gl->ActiveTexture(GL_TEXTURE0 + n);
|
||||||
gl->BindTexture(p->gl_target, plane->gl_texture);
|
gl->BindTexture(plane->gl_target, plane->gl_texture);
|
||||||
glUploadTex(gl, p->gl_target, plane->gl_format, plane->gl_type,
|
glUploadTex(gl, plane->gl_target, plane->gl_format, plane->gl_type,
|
||||||
mpi->planes[n], mpi->stride[n], 0, 0, plane->w, plane->h, 0);
|
mpi->planes[n], mpi->stride[n], 0, 0, plane->w, plane->h, 0);
|
||||||
}
|
}
|
||||||
gl->ActiveTexture(GL_TEXTURE0);
|
gl->ActiveTexture(GL_TEXTURE0);
|
||||||
|
Loading…
Reference in New Issue
Block a user