mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Fix build
This commit is contained in:
parent
13144c24f1
commit
be54fd93b2
@ -898,7 +898,11 @@ public final class MetalEngine {
|
|||||||
fileprivate let impl: Impl
|
fileprivate let impl: Impl
|
||||||
|
|
||||||
public var rootLayer: CALayer {
|
public var rootLayer: CALayer {
|
||||||
|
#if targetEnvironment(simulator)
|
||||||
return self.impl._layer
|
return self.impl._layer
|
||||||
|
#else
|
||||||
|
return self.impl.layer
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
public var device: MTLDevice {
|
public var device: MTLDevice {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user