Parcourir la source

one pipe, multiple windows

David Rose il y a 24 ans
Parent
commit
f96387e291
1 fichiers modifiés avec 6 ajouts et 5 suppressions
  1. 6 5
      direct/src/showbase/ShowBase.py

+ 6 - 5
direct/src/showbase/ShowBase.py

@@ -183,16 +183,17 @@ class ShowBase:
         of windows that are to be updated every frame.
 
         """
-        pipe = makeGraphicsPipe()
-        chanConfig = makeGraphicsWindow(pipe, self.render.arc())
-        win = chanConfig.getWin()
 
         if self.pipe == None:
-            self.pipe = pipe
+            self.pipe = makeGraphicsPipe()
+            self.pipeList.append(self.pipe)
+
+        chanConfig = makeGraphicsWindow(self.pipe, self.render.arc())
+        win = chanConfig.getWin()
+
         if self.win == None:
             self.win = win
 
-        self.pipeList.append(pipe)
         self.winList.append(win)
 
         self.getCameras(chanConfig)