summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2015-09-09 09:08:51 -0400
committerDavid Thompson <dthompson2@worcester.edu>2015-09-09 09:08:51 -0400
commitf38bfe77264907d8b949aab2c0b27a9d705f239f (patch)
tree9a390248cf9b214532055dc6f9587a6f88babd9e
parent0bba6c1ce973be5c99057e880c550627146ec616 (diff)
render: mesh: Tweak with-mesh to use null-mesh.
* sly/render/mesh.scm (with-mesh): Apply the null-mesh after evaluating the body.
-rw-r--r--sly/render/mesh.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/sly/render/mesh.scm b/sly/render/mesh.scm
index 1a666e3..69f89ce 100644
--- a/sly/render/mesh.scm
+++ b/sly/render/mesh.scm
@@ -230,7 +230,7 @@
(begin
(apply-mesh vao)
body ...
- (glBindVertexArray 0)))
+ (apply-mesh null-mesh)))
(define (vertex-attrib-pointer location vbo)
(glEnableVertexAttribArray location)