Fix build

This commit is contained in:
Ilya Laktyushin
2022-12-17 16:35:50 +04:00
parent f56e2e981f
commit 6b7c6c1c99

View File

@@ -721,7 +721,7 @@ final class Texture {
return nil
}
#else
guard let dataProvider = CGDataProvider(data: Data(bytesNoCopy: self.buffer.contents(), count: self.buffer.length, deallocator: .custom { [weak pool] _, _ in
guard let dataProvider = CGDataProvider(data: Data(bytesNoCopy: self.buffer.contents(), count: self.buffer.length, deallocator: .custom { _, _ in
}) as CFData) else {
return nil
}