From cea8c86f182193078b9c29febd20dc62837d8cb1 Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Sun, 16 Jul 2017 17:25:47 +0200 Subject: vo_opengl: use MP_ALIGN_UP instead of FFALIGN Consistency/style --- video/out/opengl/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3