1
0
mirror of https://github.com/yattee/yattee.git synced 2024-12-14 14:20:32 +05:30

Enable mpv drawing in simulator

This commit is contained in:
Arkadiusz Fal 2022-07-06 21:49:56 +02:00
parent fd5b21e5f9
commit 433e3aeefe

View File

@ -384,11 +384,6 @@ final class MPVClient: ObservableObject {
}
private func glUpdate(_ ctx: UnsafeMutableRawPointer?) {
#if targetEnvironment(simulator)
// performance of drawing in simulator is poor and buggy, disable it
return
#endif
let glView = unsafeBitCast(ctx, to: MPVOGLView.self)
guard glView.needsDrawing else {