Fixed building with an older Mac OS X SDK
This commit is contained in:
parent
ebe9688dd9
commit
8e5f46fa1d
2 changed files with 2 additions and 2 deletions
|
@ -40,7 +40,7 @@
|
|||
/* Return a Metal-compatible layer. */
|
||||
+ (Class)layerClass
|
||||
{
|
||||
return [CAMetalLayer class];
|
||||
return NSClassFromString(@"CAMetalLayer");
|
||||
}
|
||||
|
||||
/* Indicate the view wants to draw using a backing layer instead of drawRect. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue