Browse Source

show-tex-mem must follow base assignment

David Rose 17 năm trước cách đây
mục cha
commit
6fb65f4e26
1 tập tin đã thay đổi với 4 bổ sung4 xóa
  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':
             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):