chiark
/
gitweb
/
~ianmdlvl
/
cura.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8485df
)
Fix the GCode rendering bug.
author
daid303
<daid303@gmail.com>
Tue, 23 Apr 2013 10:01:59 +0000
(12:01 +0200)
committer
daid303
<daid303@gmail.com>
Tue, 23 Apr 2013 10:01:59 +0000
(12:01 +0200)
Cura/gui/util/opengl.py
patch
|
blob
|
history
diff --git
a/Cura/gui/util/opengl.py
b/Cura/gui/util/opengl.py
index ae9b64f17c04f6106c7d38d65ad4f959b83099bb..a3ed6bd2d3479394132a033fa94e9ec5e0bb1c2f 100644
(file)
--- 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