show-tex-mem

This commit is contained in:
David Rose 2009-02-10 21:05:52 +00:00
parent 07aa73df98
commit 932da28ac1
1 changed files with 4 additions and 2 deletions

View File

@ -368,8 +368,6 @@ class ShowBase(DirectObject.DirectObject):
if self.windowType != 'none':
self.__doStartDirect()
if self.config.GetBool('show-tex-mem', False):
self.toggleTexMem()
taskMgr.finalInit()
@ -791,6 +789,10 @@ 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):