mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
don't crash if can't open window
This commit is contained in:
parent
02fc9f0250
commit
12d76aeff3
@ -135,7 +135,7 @@ class ShowBase(DirectObject.DirectObject):
|
||||
# Give the window a chance to truly open.
|
||||
self.graphicsEngine.renderFrame()
|
||||
self.graphicsEngine.renderFrame()
|
||||
if self.win.isClosed():
|
||||
if self.win != None and self.win.isClosed():
|
||||
self.notify.info("Window did not open, removing.")
|
||||
self.closeWindow(self.win)
|
||||
|
||||
@ -149,7 +149,7 @@ class ShowBase(DirectObject.DirectObject):
|
||||
|
||||
self.graphicsEngine.renderFrame()
|
||||
self.graphicsEngine.renderFrame()
|
||||
if self.win.isClosed():
|
||||
if self.win != None and self.win.isClosed():
|
||||
self.notify.info("Window did not open, removing.")
|
||||
self.closeWindow(self.win)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user