X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=util.cpp;h=372064b28948238c1c30815f7cb9cdb82087128f;hp=cd820bc74afe3d7ee8314ee1d47da82bb33cf55a;hb=56ff92c5828a143595eeb7a1906418cc30668f9d;hpb=7f1c8bb8b3ce08b94054f0a8990e5b8225d36036 diff --git a/util.cpp b/util.cpp index cd820bc..372064b 100644 --- a/util.cpp +++ b/util.cpp @@ -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