Issue #29: moved reset OpenGL state to Renderer class