summaryrefslogtreecommitdiff
path: root/sly/mesh.scm
diff options
context:
space:
mode:
Diffstat (limited to 'sly/mesh.scm')
-rw-r--r--sly/mesh.scm6
1 files changed, 1 insertions, 5 deletions
diff --git a/sly/mesh.scm b/sly/mesh.scm
index cd8f680..1d7d89c 100644
--- a/sly/mesh.scm
+++ b/sly/mesh.scm
@@ -142,12 +142,8 @@
body ...
(glBindVertexArray 0)))
-(define (attribute-location shader-program name)
- "Retrieve the location for the uniform NAME within SHADER-PROGRAM."
- (glGetAttribLocation (shader-program-id shader-program) name))
-
(define (vertex-attrib-pointer shader attribute vbo)
- (let ((location (attribute-location shader attribute)))
+ (let ((location (shader-program-attribute-location shader attribute)))
(glEnableVertexAttribArray location)
(with-vertex-buffer vbo
(glVertexAttribPointer location (vertex-buffer-attr-size vbo)