tambolo / andengine

Automatically exported from code.google.com/p/andengine
0 stars 0 forks source link

RenderSurfaceView.setRenderer endless cycles #38

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

public void setRenderer(final Engine pEngine) {
  this.setOnTouchListener(pEngine);
  this.mRenderer = new Renderer(pEngine);
  this.setRenderer(this.mRenderer);  // !!!
} 

What is the expected output? What do you see instead?

When using with BaseAugmentedRealityGameActivity :
ERROR/AndroidRuntime(7772): Caused by: java.lang.IllegalStateException: 
setRenderer has already been called for this instance.

The call to setRenderer in setRenderer is too much I guess.

Original issue reported on code.google.com by slowpoke...@gmail.com on 5 Jul 2011 at 9:12

GoogleCodeExporter commented 8 years ago
Well, I guess it was too late yesterday ... sorry for this stupid ticket. The 
setRenderer is of course not wrong in there. Nevertheless, the 
IllegalStateException kicks in with the AugmentedReality example anyway.

Original comment by slowpoke...@gmail.com on 6 Jul 2011 at 7:50