Commit 7ee7e1d9 authored by Kliment Yanev's avatar Kliment Yanev

Avoid recursion loop

parent f1359bb3
...@@ -133,8 +133,8 @@ class wxGLPanel(wx.Panel): ...@@ -133,8 +133,8 @@ class wxGLPanel(wx.Panel):
def OnReshape(self, width, height): def OnReshape(self, width, height):
'''Reshape the OpenGL viewport based on the dimensions of the window.''' '''Reshape the OpenGL viewport based on the dimensions of the window.'''
if not self.GLinitialized: if not self.GLinitialized:
self.OnInitGL()
self.GLinitialized = True self.GLinitialized = True
self.OnInitGL()
glViewport(0, 0, width, height) glViewport(0, 0, width, height)
glMatrixMode(GL_PROJECTION) glMatrixMode(GL_PROJECTION)
glLoadIdentity() glLoadIdentity()
......
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