summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.xyz>2017-07-16 17:25:47 +0200
committerNiklas Haas <git@haasn.xyz>2017-07-16 17:47:06 +0200
commitcea8c86f182193078b9c29febd20dc62837d8cb1 (patch)
tree9ec49574a19d34ec5f7f9e61735765ee1b4d3a95
parentdead206873c1840a21adf789b9e4b5d167012b19 (diff)
downloadmpv-cea8c86f182193078b9c29febd20dc62837d8cb1.tar.bz2
mpv-cea8c86f182193078b9c29febd20dc62837d8cb1.tar.xz
vo_opengl: use MP_ALIGN_UP instead of FFALIGN
Consistency/style
-rw-r--r--video/out/opengl/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/opengl/utils.c b/video/out/opengl/utils.c
index 878c468175..fc94f3738f 100644
--- a/video/out/opengl/utils.c
+++ b/video/out/opengl/utils.c
@@ -1319,7 +1319,7 @@ void gl_pbo_upload_tex(struct gl_pbo_upload *pbo, GL *gl, bool use_pbo,
// dependencies. This is not a strict requirement (the spec requires no
// alignment), but a good precaution for performance reasons
size_t needed_size = stride * h;
- size_t buffer_size = FFALIGN(needed_size, 4096);
+ size_t buffer_size = MP_ALIGN_UP(needed_size, 4096);
if (buffer_size != pbo->buffer_size)
gl_pbo_upload_uninit(pbo);