Made gl-rendering work.