mirror of
https://github.com/yattee/yattee.git
synced 2025-04-28 07:50:33 +05:30
Enable mpv drawing in simulator
This commit is contained in:
parent
09ce5f02c3
commit
d8a699a4eb
@ -384,11 +384,6 @@ final class MPVClient: ObservableObject {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private func glUpdate(_ ctx: UnsafeMutableRawPointer?) {
|
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)
|
let glView = unsafeBitCast(ctx, to: MPVOGLView.self)
|
||||||
|
|
||||||
guard glView.needsDrawing else {
|
guard glView.needsDrawing else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user