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:
f1b1aab
)
Release the indices buffer.
author
daid
<daid303@gmail.com>
Mon, 24 Feb 2014 08:27:09 +0000
(09:27 +0100)
committer
daid
<daid303@gmail.com>
Mon, 24 Feb 2014 08:27:09 +0000
(09:27 +0100)
Cura/gui/util/openglHelpers.py
patch
|
blob
|
history
diff --git
a/Cura/gui/util/openglHelpers.py
b/Cura/gui/util/openglHelpers.py
index 20d2abd4b22e7a9a03939e2323af4edcbdf80c1c..2b110094fbbc409a4f8fa40d1cdf7fe9f79fb01f 100644
(file)
--- a/
Cura/gui/util/openglHelpers.py
+++ b/
Cura/gui/util/openglHelpers.py
@@
-208,6
+208,11
@@
class GLVBO(GLReferenceCounter):
glBindBuffer(GL_ARRAY_BUFFER, 0)
glDeleteBuffers(1, [self._buffer])
self._buffer = None
+ if self._hasIndices:
+ glBindBuffer(GL_ARRAY_BUFFER, self._bufferIndices)
+ glBufferData(GL_ARRAY_BUFFER, None, GL_STATIC_DRAW)
+ glBindBuffer(GL_ARRAY_BUFFER, 0)
+ glDeleteBuffers(1, [self._bufferIndices])
self._vertexArray = None
self._normalArray = None