From: Daid Date: Mon, 24 Jun 2013 11:21:10 +0000 (+0200) Subject: Ask for a 24bit depth buffer, this gives better performance on Mac. X-Git-Tag: 13.06.4~12 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=87a4ff5235e912305500bebec999865120bfcb06;p=cura.git Ask for a 24bit depth buffer, this gives better performance on Mac. --- diff --git a/Cura/gui/util/openglGui.py b/Cura/gui/util/openglGui.py index 764c88a5..7d611e9d 100644 --- a/Cura/gui/util/openglGui.py +++ b/Cura/gui/util/openglGui.py @@ -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