Commit 78329079 authored by Guillaume Seguin's avatar Guillaume Seguin

Fix wxGLPanel for wx2.8

parent a94bf324
...@@ -65,7 +65,7 @@ class wxGLPanel(wx.Panel): ...@@ -65,7 +65,7 @@ class wxGLPanel(wx.Panel):
glcanvas.WX_GL_DOUBLEBUFFER, # Double Buffered glcanvas.WX_GL_DOUBLEBUFFER, # Double Buffered
glcanvas.WX_GL_DEPTH_SIZE, 24) # 24 bit glcanvas.WX_GL_DEPTH_SIZE, 24) # 24 bit
if antialias_samples > 0: if antialias_samples > 0 and hasattr(glcanvas, "WX_GL_SAMPLE_BUFFERS"):
attribList += (glcanvas.WX_GL_SAMPLE_BUFFERS, 1, attribList += (glcanvas.WX_GL_SAMPLE_BUFFERS, 1,
glcanvas.WX_GL_SAMPLES, antialias_samples) glcanvas.WX_GL_SAMPLES, antialias_samples)
......
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