Fall-back to OpenGL renderer if mac hardware doesn't support Metal

BUG=webrtc:7782

Review-Url: https://codereview.webrtc.org/2927983002
Cr-Commit-Position: refs/heads/master@{#18539}
This commit is contained in:
adam.fedor
2017-06-12 07:32:02 -07:00
committed by Commit Bot
parent 84b4d2c1c2
commit 42742a56ef
3 changed files with 6 additions and 5 deletions

View File

@ -50,7 +50,7 @@
#pragma mark - Private
+ (BOOL)isMetalAvailable {
return YES;
return [MTLCopyAllDevices() count] > 0;
}
- (void)configure {