getting opengl to work with the new renderer architecture