From: daid303 Date: Tue, 23 Apr 2013 10:01:59 +0000 (+0200) Subject: Fix the GCode rendering bug. X-Git-Tag: 13.05~60 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=bc889920068664c09bdf8b6adcc12f9e4b2e1eb8;p=cura.git Fix the GCode rendering bug. --- diff --git a/Cura/gui/util/opengl.py b/Cura/gui/util/opengl.py index ae9b64f1..a3ed6bd2 100644 --- a/Cura/gui/util/opengl.py +++ b/Cura/gui/util/opengl.py @@ -101,7 +101,7 @@ class GLVBO(GLReferenceCounter): else: glVertexPointer(3, GL_FLOAT, 3*4, c_void_p(0)) - batchSize = 1002 #Warning, batchSize needs to be dividable by 3 and 2 + batchSize = 996 #Warning, batchSize needs to be dividable by 4, 3 and 2 extraStartPos = int(self._size / batchSize) * batchSize extraCount = self._size - extraStartPos