feat: getTexturePtr
This commit is contained in:
parent
1a164ee5a0
commit
0f59fef831
5 changed files with 32 additions and 4 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue