From: daid Date: Mon, 3 Sep 2012 10:06:05 +0000 (+0200) Subject: Instead of using GL_NORMALIZE use GL_RESCALE_NORMAL which is faster. X-Git-Tag: 13.03~350 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=169d3e15c986725dd18c003f23651aaeca2a29b3;p=cura.git Instead of using GL_NORMALIZE use GL_RESCALE_NORMAL which is faster. --- diff --git a/Cura/gui/opengl.py b/Cura/gui/opengl.py index 33997611..81d23320 100644 --- a/Cura/gui/opengl.py +++ b/Cura/gui/opengl.py @@ -23,7 +23,7 @@ def InitGL(window, view3D, zoom): glLightfv(GL_LIGHT0, GL_POSITION, [1.0, 1.0, 1.0, 0.0]) glLightfv(GL_LIGHT1, GL_POSITION, [1.0, 1.0, 1.0, 0.0]) - glEnable(GL_NORMALIZE) + glEnable(GL_RESCALE_NORMAL) glEnable(GL_LIGHTING) glEnable(GL_LIGHT0) glEnable(GL_DEPTH_TEST) diff --git a/Cura/gui/projectPlanner.py b/Cura/gui/projectPlanner.py index a9e893b9..619a4e25 100644 --- a/Cura/gui/projectPlanner.py +++ b/Cura/gui/projectPlanner.py @@ -829,7 +829,6 @@ class PreviewGLCanvas(glcanvas.GLCanvas): glEnable(GL_LIGHTING) glTranslate(item.centerX, item.centerY, 0) glPushMatrix() - glEnable(GL_NORMALIZE) glScalef(item.scale, item.scale, item.scale) glCallList(item.modelDisplayList) glPopMatrix()