summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--starling/node-2d.scm14
1 files changed, 3 insertions, 11 deletions
diff --git a/starling/node-2d.scm b/starling/node-2d.scm
index b46b454..abdf66a 100644
--- a/starling/node-2d.scm
+++ b/starling/node-2d.scm
@@ -679,9 +679,6 @@
(define-class <sprite> (<node-2d>)
(texture #:accessor texture #:init-keyword #:texture #:asset? #t #:watch? #t)
- (batch #:accessor batch
- #:init-keyword #:batch
- #:init-form #f)
(tint #:accessor tint
#:init-keyword #:tint
#:init-form white)
@@ -698,16 +695,11 @@
(define-method (render (sprite <sprite>) alpha)
(let* ((tex (texture sprite))
(rect (size sprite))
- (batch (batch sprite))
(tint (tint sprite))
(matrix (world-matrix sprite)))
- (if batch
- (sprite-batch-add* batch rect matrix
- #:tint tint
- #:texture-region tex)
- (draw-sprite* tex rect matrix
- #:tint tint
- #:texcoords (texture-gl-tex-rect tex)))))
+ (draw-sprite* tex rect matrix
+ #:tint tint
+ #:texcoords (texture-gl-tex-rect tex))))
;;;