Skip to content
Snippets Groups Projects
Commit efee8c82 authored by 砍砍's avatar 砍砍
Browse files

Update MulticolorGradientView.swift

parent 0904e2eb
No related branches found
No related tags found
No related merge requests found
......@@ -98,7 +98,9 @@ public class MulticolorGradientView: MetalView {
commandEncoder.endEncoding()
commandBuffer.commit()
commandBuffer.waitUntilScheduled()
drawable.present()
DispatchQueue.main.async {
drawable.present()
}
// so we release the lock there
commandBuffer.waitUntilCompleted()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment