Use Vec::get for the result of gl2::gen_textures and gl2::gen_framebuffers.