Fixed building with an older Mac OS X SDK

This commit is contained in:
Sam Lantinga
2017-08-28 20:52:05 -07:00
parent e8b114ecfc
commit 1067b528d3
2 changed files with 2 additions and 2 deletions

View File

@@ -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. */