diff options
author | wm4 <wm4@nowhere> | 2016-02-18 10:46:03 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-02-18 10:46:03 +0100 |
commit | c01aaabb3e0083fcac4d8b32b17b0dc127be6ac6 (patch) | |
tree | de589474187035a809f055be475458313da14c8b | |
parent | 57c31f41301febe6a7b58833c164f090886a5b95 (diff) |
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.
-rw-r--r-- | video/out/opengl/video.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/video/out/opengl/video.c b/video/out/opengl/video.c index 9331f002c1..b4b5ac4703 100644 --- a/video/out/opengl/video.c +++ b/video/out/opengl/video.c @@ -2446,8 +2446,8 @@ static void gl_video_upload_image(struct gl_video *p, struct mp_image *mpi) if (pbo) gl->BindBuffer(GL_PIXEL_UNPACK_BUFFER, plane->gl_buffer); gl->ActiveTexture(GL_TEXTURE0 + n); - gl->BindTexture(p->gl_target, plane->gl_texture); - glUploadTex(gl, p->gl_target, plane->gl_format, plane->gl_type, + gl->BindTexture(plane->gl_target, plane->gl_texture); + glUploadTex(gl, plane->gl_target, plane->gl_format, plane->gl_type, mpi->planes[n], mpi->stride[n], 0, 0, plane->w, plane->h, 0); } gl->ActiveTexture(GL_TEXTURE0); |