summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/projects/objc/metal_app/Application/AAPLViewController.m8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/projects/objc/metal_app/Application/AAPLViewController.m b/tests/projects/objc/metal_app/Application/AAPLViewController.m
index dc02a8c4a..5604a5e22 100644
--- a/tests/projects/objc/metal_app/Application/AAPLViewController.m
+++ b/tests/projects/objc/metal_app/Application/AAPLViewController.m
@@ -21,13 +21,13 @@ Implementation of our cross-platform view controller
// Set the view to use the default device
_view = (MTKView *)self.view;
-
+
_view.device = MTLCreateSystemDefaultDevice();
-
+
NSAssert(_view.device, @"Metal is not supported on this device");
-
+
_renderer = [[AAPLRenderer alloc] initWithMetalKitView:_view];
-
+
NSAssert(_renderer, @"Renderer failed initialization");
// Initialize our renderer with the view size