summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sly/render/context.scm4
1 files changed, 3 insertions, 1 deletions
diff --git a/sly/render/context.scm b/sly/render/context.scm
index fb28eda..dc89fad 100644
--- a/sly/render/context.scm
+++ b/sly/render/context.scm
@@ -82,7 +82,9 @@
(%set-render-context-mesh! context #f))
(define-syntax-rule (with-render-context context body ...)
- (begin (render-context-reset! context) body ...))
+ (begin (render-context-reset! context)
+ body ...
+ (render-context-reset! context)))
(define (set-render-context-blend-mode! context blend-mode)
(unless (equal? (render-context-blend-mode context) blend-mode)