title: How to stop Open GL renderer
body: <p>For some reason, I need to restart a GLSurfaceView.Renderer so I want some time in my app to call setRenderer(newRenderer) a second time, which Android doesn't like and throws a IllegalStateException saying "setRenderer has already been called"...</p>
  
  <p>Now, I know this is because the renderer is attached to the GLSurfaceView and I need to unbind this renderer to the surface view, so I can call again setRenderer.</p>
  
  <p>Anyone has a solution for this ?</p>
  
  <p>P.S.:
  Code looks like this :</p>
  
  <pre><code>render = new Renderer(this);
  
  setContentView(R.layout.main);
  graphicView = (GLSurfaceView) this.findViewById(R.id.graphicView);
  
  //DO STUFF
  
  graphicView.setRenderer(render);
  
  //DO STUFF
  
  Renderer newRender = new Renderer();
  graphicView.setRenderer(newRender); &lt;= ...and Android hates this line sooo much
  </code></pre>
  
  <p>Thanks !</p>