Browse Source

show-tex-mem must follow base assignment

David Rose 17 years ago
parent
commit
6fb65f4e26
1 changed files with 4 additions and 4 deletions
  1. 4 4
      direct/src/showbase/ShowBase.py

+ 4 - 4
direct/src/showbase/ShowBase.py

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