From f96387e291ddfd446490997177c2e60c405b0e09 Mon Sep 17 00:00:00 2001 From: David Rose Date: Sun, 13 Jan 2002 20:59:17 +0000 Subject: [PATCH] one pipe, multiple windows --- direct/src/showbase/ShowBase.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/direct/src/showbase/ShowBase.py b/direct/src/showbase/ShowBase.py index 6a46e9d687..59a3955fef 100644 --- a/direct/src/showbase/ShowBase.py +++ b/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)