aboutsummaryrefslogtreecommitdiff
path: root/cube/macOS
diff options
context:
space:
mode:
Diffstat (limited to 'cube/macOS')
-rw-r--r--cube/macOS/cube/DemoViewController.m2
-rw-r--r--cube/macOS/cubepp/DemoViewController.mm2
2 files changed, 2 insertions, 2 deletions
diff --git a/cube/macOS/cube/DemoViewController.m b/cube/macOS/cube/DemoViewController.m
index eb28ad57..c6e229d3 100644
--- a/cube/macOS/cube/DemoViewController.m
+++ b/cube/macOS/cube/DemoViewController.m
@@ -52,7 +52,7 @@
argv[i] = s.UTF8String;
}
- demo_main(&demo, self.view, args.count, argv);
+ demo_main(&demo, self.view.layer, args.count, argv);
// Monitor the rendering loop for a quit condition
_timer = [NSTimer scheduledTimerWithTimeInterval: 0.2
diff --git a/cube/macOS/cubepp/DemoViewController.mm b/cube/macOS/cubepp/DemoViewController.mm
index 049ec6b6..9e003b9b 100644
--- a/cube/macOS/cubepp/DemoViewController.mm
+++ b/cube/macOS/cubepp/DemoViewController.mm
@@ -52,7 +52,7 @@
argv[i] = s.UTF8String;
}
- demo_main(demo, self.view, args.count, argv);
+ demo_main(demo, self.view.layer, args.count, argv);
// Monitor the rendering loop for a quit condition
_timer = [NSTimer scheduledTimerWithTimeInterval: 0.2