Skip to content

Commit

Permalink
Fixed building with an older Mac OS X SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Aug 29, 2017
1 parent e8b114e commit 1067b52
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/SDL_config_macosx.h
Expand Up @@ -176,7 +176,7 @@

/* Enable Vulkan support */
/* Metal/MoltenVK/Vulkan only supported on 64-bit architectures with 10.11+ */
#if TARGET_CPU_X86_64 && (MAC_OS_X_VERSION_MIN_REQUIRED >= 101100)
#if TARGET_CPU_X86_64 && (MAC_OS_X_VERSION_MAX_REQUIRED >= 101100)
#define SDL_VIDEO_VULKAN 1
#else
#define SDL_VIDEO_VULKAN 0
Expand Down
2 changes: 1 addition & 1 deletion src/video/cocoa/SDL_cocoametalview.m
Expand Up @@ -40,7 +40,7 @@ @implementation SDL_cocoametalview
/* 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. */
Expand Down

0 comments on commit 1067b52

Please sign in to comment.