chiark / gitweb /
Ask for a 24bit depth buffer, this gives better performance on Mac.
authorDaid <Daid303@gmail.com>
Mon, 24 Jun 2013 11:21:10 +0000 (13:21 +0200)
committerDaid <Daid303@gmail.com>
Mon, 24 Jun 2013 11:21:10 +0000 (13:21 +0200)
Cura/gui/util/openglGui.py

index 764c88a5be4abb237b7f0e20914534cbe44cd430..7d611e9d56edd0c9bf43c983ddf7400ba244f616 100644 (file)
@@ -125,7 +125,7 @@ class glGuiContainer(glGuiControl):
 
 class glGuiPanel(glcanvas.GLCanvas):
        def __init__(self, parent):
-               attribList = (glcanvas.WX_GL_RGBA, glcanvas.WX_GL_DOUBLEBUFFER, glcanvas.WX_GL_DEPTH_SIZE, 32, glcanvas.WX_GL_STENCIL_SIZE, 8, 0)
+               attribList = (glcanvas.WX_GL_RGBA, glcanvas.WX_GL_DOUBLEBUFFER, glcanvas.WX_GL_DEPTH_SIZE, 24, glcanvas.WX_GL_STENCIL_SIZE, 8, 0)
                glcanvas.GLCanvas.__init__(self, parent, style=wx.WANTS_CHARS, attribList = attribList)
                self._base = self
                self._focus = None