Forked from https://github.com/evanw/gl4