Skip to content

Commit

Permalink
Add missing availability check for macOS 10.12.
Browse files Browse the repository at this point in the history
  • Loading branch information
chinmaygarde authored and dnfield committed Apr 27, 2022
1 parent 20d22fd commit 05e9f89
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions impeller/renderer/backend/metal/device_buffer_mtl.mm
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,10 @@
if (label.empty()) {
return false;
}
[buffer_ addDebugMarker:@(label.c_str())
range:NSMakeRange(range.offset, range.length)];
if (@available(macOS 10.12, *)) {
[buffer_ addDebugMarker:@(label.c_str())
range:NSMakeRange(range.offset, range.length)];
}
return true;
}

Expand Down

0 comments on commit 05e9f89

Please sign in to comment.