show-tex-mem must follow base assignment

This commit is contained in:
David Rose 2009-02-10 23:39:11 +00:00
parent da684d4f49
commit 6fb65f4e26
1 changed files with 4 additions and 4 deletions

View File

@ -369,6 +369,10 @@ class ShowBase(DirectObject.DirectObject):
if self.windowType != 'none':
self.__doStartDirect()
if self.config.GetBool('show-tex-mem', False):
if not self.texmem or self.texmem.cleanedUp:
self.toggleTexMem()
taskMgr.finalInit()
# Start IGLOOP
@ -789,10 +793,6 @@ class ShowBase(DirectObject.DirectObject):
self.setFrameRateMeter(self.config.GetBool(
'show-frame-rate-meter', 0))
if self.config.GetBool('show-tex-mem', False):
if not self.texmem or self.texmem.cleanedUp:
self.toggleTexMem()
return success
def setSleep(self, amount):