Ver Fonte

先不初始化图片数据,解决图片数据有可能 crash 问题

jsonwang há 3 anos atrás
pai
commit
456798fdae

+ 1 - 1
BFFramework/Classes/PQGPUImage/akfilters/PQImageFilter.swift

@@ -74,7 +74,7 @@ open class PQImageFilter: PQBaseFilter {
         if newImage?.cgImage != nil {
             BFLog(message: "提前加载图片。。。。timelineIn : \(String(describing: mSticker?.timelineIn)) timelineOut :\(String(describing: mSticker?.timelineOut)) \(String(describing: mSticker?.locationPath))")
             
-            imageTexture = PQGPUImageTools.setupTexture(image: newImage!.cgImage!)
+//            imageTexture = PQGPUImageTools.setupTexture(image: newImage!.cgImage!)
 
         } else { FilterLog(message: "image filter init error image data is nil!") }
     }