Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Scanner/MetalRenderer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class MetalData: NSObject, MTKViewDelegate {

private var _cameraPosition = float4x4.identity
private var _options: Options
private var _queue = dispatch_queue_serial_t(label: "metal.visualization")
private var _queue = DispatchQueue(label: "metal.visualization")
private var _imp: STKMetalRenderer

init(view: MTKView, device: MTLDevice, options: Options) {
Expand Down
4 changes: 2 additions & 2 deletions Scanner/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ class ViewController: UIViewController, STBackgroundTaskDelegate, MeshViewDelega
override func viewDidLoad() {
super.viewDidLoad()

DispatchQueue.global(qos: .background).async {
DispatchQueue(label: "license.validation", qos: .userInitiated).async {
// Enter license key here(see the readme "Build Process" section)
let status = STLicenseManager.unlock(withKey: licenseKey, shouldRefresh: true)
let status = STLicenseManager.unlock(withKey: licenseKey, shouldRefresh: false)
if status != .valid {
print("Error: No license!")
}
Expand Down