Modified GLRenderer. (I'll pause rewriting for a while)