diff --git a/libc3/window/cairo/quartz/window_cairo_quartz_view.m b/libc3/window/cairo/quartz/window_cairo_quartz_view.m
index a98df3c..97d20ba 100644
--- a/libc3/window/cairo/quartz/window_cairo_quartz_view.m
+++ b/libc3/window/cairo/quartz/window_cairo_quartz_view.m
@@ -42,6 +42,7 @@
self.bounds.size.width,
self.bounds.size.height);
cairo_t *cr = cairo_create(surface);
+ self.window_cairo->cr = cr;
if (! self.window_cairo->render(self.window_cairo)) {
[self.window close];
[self.window release];