Commit 9c5760ed authored by Guillaume Seguin's avatar Guillaume Seguin

Improve gl/panel resize behavior by refreshing again 100ms later

parent 6126a155
...@@ -72,7 +72,9 @@ class wxGLPanel(wx.Panel): ...@@ -72,7 +72,9 @@ class wxGLPanel(wx.Panel):
# Make sure the frame is shown before calling SetCurrent. # Make sure the frame is shown before calling SetCurrent.
self.canvas.SetCurrent(self.context) self.canvas.SetCurrent(self.context)
self.OnReshape() self.OnReshape()
self.canvas.Refresh(False) self.Refresh(False)
timer = wx.CallLater(100, self.Refresh)
timer.Start()
event.Skip() event.Skip()
def processPaintEvent(self, event): def processPaintEvent(self, event):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment