X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=util.cpp;h=372064b28948238c1c30815f7cb9cdb82087128f;hb=8c7e53028a3ef4805d2608643041a5d7e6bd1b6e;hp=b86e3f77c9d4842fdea43cfbfe025bc786a2fa1c;hpb=d398770154ecc4bc95282dc45656789dd5686309;p=movit diff --git a/util.cpp b/util.cpp index b86e3f7..372064b 100644 --- a/util.cpp +++ b/util.cpp @@ -1,4 +1,4 @@ -#include +#include #include #include #include @@ -215,4 +215,9 @@ void cleanup_vertex_attribute(GLuint glsl_program_num, const string &attribute_n check_error(); } +unsigned div_round_up(unsigned a, unsigned b) +{ + return (a + b - 1) / b; +} + } // namespace movit