Silence warnings about unused static functions in opengl2