summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chickadee/render/buffer.scm5
1 files changed, 1 insertions, 4 deletions
diff --git a/chickadee/render/buffer.scm b/chickadee/render/buffer.scm
index 48362f0..686197c 100644
--- a/chickadee/render/buffer.scm
+++ b/chickadee/render/buffer.scm
@@ -353,10 +353,7 @@ be specified for the buffer."
(typed-buffer-type-gl typed-buffer)
(typed-buffer-normalized? typed-buffer)
(typed-buffer-stride typed-buffer)
- (let ((offset (typed-buffer-offset typed-buffer)))
- (if (zero? offset)
- %null-pointer
- (bytevector->pointer (s32vector offset)))))))
+ (make-pointer (typed-buffer-offset typed-buffer)))))
;; TODO: Handle 4-byte alignment rule for the types that need it.
(define (typed-buffer->vector typed-buffer)