summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sly/render/group.scm17
1 files changed, 9 insertions, 8 deletions
diff --git a/sly/render/group.scm b/sly/render/group.scm
index 7ccb582..9cfc062 100644
--- a/sly/render/group.scm
+++ b/sly/render/group.scm
@@ -95,14 +95,15 @@ or not to render child nodes."
(lambda* (group camera #:optional (context context))
"Draw the scene defined by GROUP as viewed by CAMERA, with the given
render CONTEXT."
- (with-temp-transform context view
- (transform*! view
- (camera-location camera)
- (camera-projection camera))
- (with-temp-transform context base-transform
- (set-transform-identity! base-transform)
- (apply-viewport (camera-viewport camera))
- (%draw-group group base-transform view context))))))
+ (with-render-context context
+ (with-temp-transform context view
+ (transform*! view
+ (camera-location camera)
+ (camera-projection camera))
+ (with-temp-transform context base-transform
+ (set-transform-identity! base-transform)
+ (apply-viewport (camera-viewport camera))
+ (%draw-group group base-transform view context)))))))
;;;
;;; Utility Procedures