mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-25 16:31:42 +00:00
Merge pull request #1308 from ryandesign/no-preferredDevice
Fix color video performance on macOS 10.15+
This commit is contained in:
commit
20c1f4f0e5
@ -145,12 +145,7 @@ static CVReturn DisplayLinkCallback(__unused CVDisplayLinkRef displayLink, const
|
||||
}
|
||||
|
||||
- (void)awakeFromNib {
|
||||
// Use the preferred device if available.
|
||||
if(@available(macOS 10.15, *)) {
|
||||
self.device = self.preferredDevice;
|
||||
} else {
|
||||
self.device = MTLCreateSystemDefaultDevice();
|
||||
}
|
||||
self.device = MTLCreateSystemDefaultDevice();
|
||||
|
||||
// Configure for explicit drawing.
|
||||
self.paused = YES;
|
||||
|
Loading…
Reference in New Issue
Block a user