Browse Source

Fixed BufferViewer bug

Josh Yelon 19 years ago
parent
commit
a8f09b9631
1 changed files with 2 additions and 2 deletions
  1. 2 2
      direct/src/showbase/ShowBase.py

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

@@ -280,8 +280,8 @@ class ShowBase(DirectObject.DirectObject):
             self.multiClientSleep = 0
             self.multiClientSleep = 0
 
 
         # Offscreen buffer viewing utility.
         # Offscreen buffer viewing utility.
-        if self.config.GetBool('show-buffers', 0):
-            self.bufferViewer = BufferViewer()
+        # This needs to be allocated even if the viewer is off.
+        self.bufferViewer = BufferViewer()
 
 
         # Start Tk and DIRECT if specified by Config.prc
         # Start Tk and DIRECT if specified by Config.prc
         fTk = self.config.GetBool('want-tk', 0)
         fTk = self.config.GetBool('want-tk', 0)