comparison pytouhou/ui/gamerenderer.py @ 406:705870483559

Fix the --no-background option.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Tue, 30 Apr 2013 01:48:25 +0200
parents 3ce4065840e9
children 5fe6cd6ceb48
comparison
equal deleted inserted replaced
405:402e96a0baeb 406:705870483559
41 self.background = background 41 self.background = background
42 42
43 if game: 43 if game:
44 # Preload textures 44 # Preload textures
45 self.texture_manager.preload(game.resource_loader.instanced_anms.values()) 45 self.texture_manager.preload(game.resource_loader.instanced_anms.values())
46
47 if background:
46 self.prerender_background(background) 48 self.prerender_background(background)
47 49
48 50
49 def render(self): 51 def render(self):
50 glClear(GL_DEPTH_BUFFER_BIT) 52 glClear(GL_DEPTH_BUFFER_BIT)