X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=cura.git;a=blobdiff_plain;f=Cura%2Fgui%2Futil%2FopenglGui.py;h=c9b0eeebe684408fc0d1573e2f3cf0e14a7879dd;hp=48e216de38b26e193bf574597d11690212761ede;hb=6208201bafdeaf82883181471c6da3a41283cfe7;hpb=f395f7e33ee4f62fe851389b529cdf10108f7cf1 diff --git a/Cura/gui/util/openglGui.py b/Cura/gui/util/openglGui.py index 48e216de..c9b0eeeb 100644 --- a/Cura/gui/util/openglGui.py +++ b/Cura/gui/util/openglGui.py @@ -10,7 +10,7 @@ import time from wx import glcanvas import OpenGL -OpenGL.ERROR_CHECKING = False +#OpenGL.ERROR_CHECKING = False from OpenGL.GL import * from Cura.util import version @@ -245,6 +245,7 @@ class glGuiPanel(glcanvas.GLCanvas): locationInfo = tb[n] errStr += "\n @ %s:%s:%d" % (os.path.basename(locationInfo[0]), locationInfo[2], locationInfo[1]) if not self._shownError: + traceback.print_exc() wx.CallAfter(wx.MessageBox, errStr, _("3D window error"), wx.OK | wx.ICON_EXCLAMATION) self._shownError = True @@ -287,7 +288,7 @@ class glGuiPanel(glcanvas.GLCanvas): # glVertex2f(0, 0) # glEnd() # glDisable(GL_TEXTURE_2D) - glPopMatrix() + # glPopMatrix() def _OnEraseBackground(self,event): #Workaround for windows background redraw flicker.