Skip to content

Commit

Permalink
metal: Don't check if Metal is available if targeting modern macOS ve…
Browse files Browse the repository at this point in the history
…rsions.
  • Loading branch information
icculus committed Dec 8, 2017
1 parent b733dcc commit 81a3398
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/render/metal/SDL_render_metal.m
Expand Up @@ -119,7 +119,7 @@ @implementation METAL_RenderData
}

// this checks a weak symbol.
#if defined(__MACOSX__)
#if (defined(__MACOSX__) && (MAC_OS_X_VERSION_MIN_REQUIRED < 101100))
if (MTLCreateSystemDefaultDevice == NULL) { // probably on 10.10 or lower.
return SDL_SetError("Metal framework not available on this system");
}
Expand Down

0 comments on commit 81a3398

Please sign in to comment.