Moved some common OpenGL functionality to the parent Renderer class