diff pytouhou/ui/gamerunner.pyx @ 426:5d7bb2fd74f7

Never keep texture on the host when it has been uploaded, and prevent them from being decoded again.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Tue, 16 Jul 2013 21:11:35 +0200
parents f4d76d3d6f2a
children 0604f4fbbe3c
line wrap: on
line diff
--- a/pytouhou/ui/gamerunner.pyx
+++ b/pytouhou/ui/gamerunner.pyx
@@ -56,10 +56,10 @@ class GameRunner(GameRenderer):
         self.game = game
         self.background = background
 
-        self.texture_manager.preload(game.resource_loader.instanced_anms.values())
+        self.texture_manager.load(game.resource_loader.instanced_anms.values())
 
         if background:
-            self.background_renderer = BackgroundRenderer(self.texture_manager, self.use_fixed_pipeline)
+            self.background_renderer = BackgroundRenderer(self.use_fixed_pipeline)
             self.background_renderer.prerender(background)
 
         self.set_input(replay)