diff options
author | wm4 <wm4@nowhere> | 2016-05-23 21:23:41 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-05-23 21:27:18 +0200 |
commit | e76aa7e8dbb3da3a6f7ea8a20adb7ae70ef9a8e3 (patch) | |
tree | b335cec989ed6d496bf022d74d14d1c9cac16cca /video/out/opengl/osd.c | |
parent | 66079048eaebdb03caea81d610fd1457ceaaa507 (diff) | |
download | mpv-e76aa7e8dbb3da3a6f7ea8a20adb7ae70ef9a8e3.tar.bz2 mpv-e76aa7e8dbb3da3a6f7ea8a20adb7ae70ef9a8e3.tar.xz |
vo_opengl: rename glUploadTex, drop unused parameter
Rename it to get out of OpenGL's namespace. The gl_ prefix is used by
other mpv functions, but no OpenGL ones.
The "slice" parameter was never actually used, and all callers passed 0
for it.
Diffstat (limited to 'video/out/opengl/osd.c')
-rw-r--r-- | video/out/opengl/osd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/video/out/opengl/osd.c b/video/out/opengl/osd.c index e28bafa75e..2d4d51ab6a 100644 --- a/video/out/opengl/osd.c +++ b/video/out/opengl/osd.c @@ -181,8 +181,8 @@ static bool upload(struct mpgl_osd *ctx, struct mpgl_osd_part *osd, } } - glUploadTex(gl, GL_TEXTURE_2D, fmt->format, fmt->type, texdata, stride, - bb[0].x, bb[0].y, bb[1].x - bb[0].x, bb[1].y - bb[0].y, 0); + gl_upload_tex(gl, GL_TEXTURE_2D, fmt->format, fmt->type, texdata, stride, + bb[0].x, bb[0].y, bb[1].x - bb[0].x, bb[1].y - bb[0].y); if (pbo) gl->BindBuffer(GL_PIXEL_UNPACK_BUFFER, 0); |