move gl_helpers to util