1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-11 08:37:59 +00:00

vo_opengl: use MP_ALIGN_UP instead of FFALIGN

Consistency/style
This commit is contained in:
Niklas Haas 2017-07-16 17:25:47 +02:00
parent dead206873
commit cea8c86f18
No known key found for this signature in database
GPG Key ID: 9A09076581B27402

View File

@ -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);