X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=util.h;h=c5dafed6b7160f8b080ea6536608e1fd7735ee54;hp=c59231d205d2537c4ec965a4b5b85cf4162ff8f4;hb=3ccf5fb197c9a72545affc0b7286349d5603b72e;hpb=74ac64b2e402247edf61271a4862e657da7fe135 diff --git a/util.h b/util.h index c59231d..c5dafed 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