before rearranging openGL runtime into the fns that codegen_GPU expects