feat: getTexturePtr

This commit is contained in:
Kingtous 2023-02-18 00:53:26 +08:00
parent 1a164ee5a0
commit 0f59fef831
5 changed files with 32 additions and 4 deletions

View file

@ -87,8 +87,8 @@ void TextureRgbaRendererPlugin::HandleMethodCall(
}
else {
// Return an address.
void* rgba = (void*) textures_[key].get();
result->Success(flutter::EncodableValue(rgba));
size_t rgba = reinterpret_cast<size_t>((void*) textures_[key].get());
result->Success(flutter::EncodableValue(int64_t(rgba)));
}
}
else {