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/utils.h | |
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/utils.h')
-rw-r--r-- | video/out/opengl/utils.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/video/out/opengl/utils.h b/video/out/opengl/utils.h index ef1cc8bbc0..1e069f4455 100644 --- a/video/out/opengl/utils.h +++ b/video/out/opengl/utils.h @@ -26,9 +26,9 @@ struct mp_log; void glCheckError(GL *gl, struct mp_log *log, const char *info); -void glUploadTex(GL *gl, GLenum target, GLenum format, GLenum type, - const void *dataptr, int stride, - int x, int y, int w, int h, int slice); +void gl_upload_tex(GL *gl, GLenum target, GLenum format, GLenum type, + const void *dataptr, int stride, + int x, int y, int w, int h); mp_image_t *glGetWindowScreenshot(GL *gl); |