Browse Source

two frames to test window

David Rose 23 years ago
parent
commit
7124f6f9a9
1 changed files with 2 additions and 0 deletions
  1. 2 0
      direct/src/showbase/ShowBase.py

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

@@ -133,6 +133,7 @@ class ShowBase(DirectObject.DirectObject):
 
 
             # Give the window a chance to truly open.
             # Give the window a chance to truly open.
             self.graphicsEngine.renderFrame()
             self.graphicsEngine.renderFrame()
+            self.graphicsEngine.renderFrame()
             if self.win.isClosed():
             if self.win.isClosed():
                 self.notify.info("Window did not open, removing.")
                 self.notify.info("Window did not open, removing.")
                 self.closeWindow(self.win)
                 self.closeWindow(self.win)
@@ -145,6 +146,7 @@ class ShowBase(DirectObject.DirectObject):
                     self.pipe = self.pipeList[0]
                     self.pipe = self.pipeList[0]
                     self.openMainWindow()
                     self.openMainWindow()
 
 
+                    self.graphicsEngine.renderFrame()
                     self.graphicsEngine.renderFrame()
                     self.graphicsEngine.renderFrame()
                     if self.win.isClosed():
                     if self.win.isClosed():
                         self.notify.info("Window did not open, removing.")
                         self.notify.info("Window did not open, removing.")