mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
two frames to test window
This commit is contained in:
parent
6ffea5d693
commit
7124f6f9a9
@ -133,6 +133,7 @@ class ShowBase(DirectObject.DirectObject):
|
||||
|
||||
# Give the window a chance to truly open.
|
||||
self.graphicsEngine.renderFrame()
|
||||
self.graphicsEngine.renderFrame()
|
||||
if self.win.isClosed():
|
||||
self.notify.info("Window did not open, removing.")
|
||||
self.closeWindow(self.win)
|
||||
@ -145,6 +146,7 @@ class ShowBase(DirectObject.DirectObject):
|
||||
self.pipe = self.pipeList[0]
|
||||
self.openMainWindow()
|
||||
|
||||
self.graphicsEngine.renderFrame()
|
||||
self.graphicsEngine.renderFrame()
|
||||
if self.win.isClosed():
|
||||
self.notify.info("Window did not open, removing.")
|
||||
|
Loading…
x
Reference in New Issue
Block a user