aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bruyelle <thomas.bruyelle@gmail.com>2014-04-30 14:15:43 +0200
committerThomas Bruyelle <thomas.bruyelle@gmail.com>2014-04-30 14:15:43 +0200
commit05f92ab3f14ef17539d3300357848e84bd4740d5 (patch)
treece81b2f446d5a906778df2d56fa2ac6cff99e2de
parentc06827a70e7bc851e492935456d35cec7ee27abd (diff)
downloadgl-05f92ab3f14ef17539d3300357848e84bd4740d5.tar.gz
Add function to unbind a vao (fix #143)
-rw-r--r--vertexarray.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/vertexarray.go b/vertexarray.go
index e55fafe..45f623f 100644
--- a/vertexarray.go
+++ b/vertexarray.go
@@ -35,3 +35,7 @@ func DeleteVertexArrays(arrays []VertexArray) {
func (array VertexArray) Bind() {
C.glBindVertexArray(C.GLuint(array))
}
+
+func (array VertexArray) Unbind() {
+ C.glBindVertexArray(C.GLuint(0))
+}