X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=util.h;fp=util.h;h=a3e262fa59709469034f33c0c6aa4be1c5cb605b;hb=9e219b96e914b2e5709ba3c3345afdc3cf13a78d;hp=5c15c9f789fceda67e764002413d053911524806;hpb=daca930fb2f404e8800c35715f1fc5c4897d19fb;p=movit diff --git a/util.h b/util.h index 5c15c9f..a3e262f 100644 --- a/util.h +++ b/util.h @@ -53,6 +53,9 @@ GLuint fill_vertex_attribute(GLuint glsl_program_num, const std::string &attribu // Clean up after fill_vertex_attribute(). void cleanup_vertex_attribute(GLuint glsl_program_num, const std::string &attribute_name, GLuint vbo); +// If v is not already a power of two, return the first higher power of two. +unsigned next_power_of_two(unsigned v); + } // namespace movit #ifdef NDEBUG