fix missing return values on platform channels for destroyTexture
This commit is contained in:
@@ -201,6 +201,7 @@ class PolyvoxFilamentPlugin: FlutterPlugin, MethodCallHandler, ActivityAware, Lo
|
|||||||
_surfaceTextureEntry!!.release();
|
_surfaceTextureEntry!!.release();
|
||||||
_surface = null
|
_surface = null
|
||||||
_surfaceTextureEntry = null
|
_surfaceTextureEntry = null
|
||||||
|
result.success(true)
|
||||||
}
|
}
|
||||||
"resize" -> {
|
"resize" -> {
|
||||||
val args = call.arguments as List<Any>
|
val args = call.arguments as List<Any>
|
||||||
|
|||||||
@@ -187,6 +187,7 @@ public class SwiftPolyvoxFilamentPlugin: NSObject, FlutterPlugin, FlutterTexture
|
|||||||
}
|
}
|
||||||
self.flutterTextureId = nil
|
self.flutterTextureId = nil
|
||||||
self.pixelBuffer = nil
|
self.pixelBuffer = nil
|
||||||
|
result(true)
|
||||||
case "resize":
|
case "resize":
|
||||||
let args = call.arguments as! [Any]
|
let args = call.arguments as! [Any]
|
||||||
let width = UInt32(args[0] as! Int64)
|
let width = UInt32(args[0] as! Int64)
|
||||||
|
|||||||
@@ -162,6 +162,7 @@ public class SwiftPolyvoxFilamentPlugin: NSObject, FlutterPlugin, FlutterTexture
|
|||||||
self.flutterTextureId = nil
|
self.flutterTextureId = nil
|
||||||
self.pixelBuffer = nil
|
self.pixelBuffer = nil
|
||||||
self.metalTexture = nil
|
self.metalTexture = nil
|
||||||
|
result(true)
|
||||||
case "resize":
|
case "resize":
|
||||||
let args = call.arguments as! [Any]
|
let args = call.arguments as! [Any]
|
||||||
let width = UInt32(args[0] as! Int64)
|
let width = UInt32(args[0] as! Int64)
|
||||||
|
|||||||
Reference in New Issue
Block a user