# HG changeset patch # User prock@33b003aa-7bff-0310-803a-e67f0ece8222 # Date 1287763317 0 # Node ID 99e3ef63495ba3c5732fc18c8ba3107394f52303 # Parent cdebc30c9c4af6cc9adafb785cd6a2b7c49733b9 * The RPG and Shooter demos now clear the screen when in OpenGL mode * Small update to the soundmanager to stop the stack overflow problem. diff -r cdebc30c9c4a -r 99e3ef63495b demos/rpg/scripts/rpg.py --- a/demos/rpg/scripts/rpg.py Thu Oct 21 20:00:36 2010 +0000 +++ b/demos/rpg/scripts/rpg.py Fri Oct 22 16:01:57 2010 +0000 @@ -148,6 +148,8 @@ super(RPGApplication,self).__init__(TDS) self._settings = TDS + self.engine.getRenderBackend().setClearBackBuffer(True) + self._gamecontroller = GameController(self, self.engine, self._settings) def createListener(self): diff -r cdebc30c9c4a -r 99e3ef63495b demos/shooter/run.py --- a/demos/shooter/run.py Thu Oct 21 20:00:36 2010 +0000 +++ b/demos/shooter/run.py Fri Oct 22 16:01:57 2010 +0000 @@ -73,6 +73,8 @@ self._world = world.World(self, self.engine, self._setting) self._listener = ApplicationListener(self.engine, self._world) + + self.engine.getRenderBackend().setClearBackBuffer(True) def requestQuit(self): cmd = fife.Command() diff -r cdebc30c9c4a -r 99e3ef63495b engine/python/fife/extensions/soundmanager.py --- a/engine/python/fife/extensions/soundmanager.py Thu Oct 21 20:00:36 2010 +0000 +++ b/engine/python/fife/extensions/soundmanager.py Fri Oct 22 16:01:57 2010 +0000 @@ -283,7 +283,6 @@ if clip.looping: repeat = 0 def real_callback(clip): - clip.callback() clip.fifeemitter.stop() clip.fifeemitter.setGain(float(clip.gain)/255.0) if self.listenerposition and clip.position: