mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 09:23:03 -04:00
use openWindows() instead of renderFrame()
This commit is contained in:
parent
a1ba7a54e7
commit
2ddaea3a3d
@ -476,8 +476,7 @@ class ShowBase(DirectObject.DirectObject):
|
||||
self.openMainWindow()
|
||||
|
||||
# Give the window a chance to truly open.
|
||||
self.graphicsEngine.renderFrame()
|
||||
self.graphicsEngine.renderFrame()
|
||||
self.graphicsEngine.openWindows()
|
||||
if self.win != None and not self.isMainWindowOpen():
|
||||
self.notify.info("Window did not open, removing.")
|
||||
self.closeWindow(self.win)
|
||||
@ -490,8 +489,7 @@ class ShowBase(DirectObject.DirectObject):
|
||||
self.pipe = self.pipeList[0]
|
||||
self.openMainWindow()
|
||||
|
||||
self.graphicsEngine.renderFrame()
|
||||
self.graphicsEngine.renderFrame()
|
||||
self.graphicsEngine.openWindows()
|
||||
if self.win != None and not self.isMainWindowOpen():
|
||||
self.notify.info("Window did not open, removing.")
|
||||
self.closeWindow(self.win)
|
||||
|
Loading…
x
Reference in New Issue
Block a user