mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 01:44:06 -04:00
fix shutdown error
This commit is contained in:
parent
54a29d5ece
commit
b9da2363f1
@ -62,10 +62,11 @@ class EmbeddedPandaWindow(wx.Window):
|
||||
self.win = None
|
||||
|
||||
def onSize(self, event):
|
||||
wp = WindowProperties()
|
||||
wp.setOrigin(0, 0)
|
||||
wp.setSize(*self.GetClientSize())
|
||||
self.win.requestProperties(wp)
|
||||
if self.win:
|
||||
wp = WindowProperties()
|
||||
wp.setOrigin(0, 0)
|
||||
wp.setSize(*self.GetClientSize())
|
||||
self.win.requestProperties(wp)
|
||||
event.Skip()
|
||||
|
||||
if not hasattr(wxgl, 'GLCanvas'):
|
||||
|
Loading…
x
Reference in New Issue
Block a user