From bc889920068664c09bdf8b6adcc12f9e4b2e1eb8 Mon Sep 17 00:00:00 2001 From: daid303 Date: Tue, 23 Apr 2013 12:01:59 +0200 Subject: [PATCH] Fix the GCode rendering bug. --- Cura/gui/util/opengl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2