mapbox / mapbox-scenekit

Other
231 stars 51 forks source link

Crash in ImageBuilder #33

Open Witzeneder opened 6 years ago

Witzeneder commented 6 years ago
    func addTile(x: Int, y: Int, image: UIImage) {
        context?.draw(image.cgImage!, in: CGRect(origin: CGPoint(x: CGFloat(x) * tileSize.width, y: CGFloat(Int(imageSize.height / tileSize.height) - y - 1) * tileSize.height), size: tileSize))
    }

The force unwrap crashes sometimes

avi-c commented 6 years ago

Please check out my comment in issue #34