From 4e6ff5e4191ba09120e5c5c2c2065573a9eb70aa Mon Sep 17 00:00:00 2001 From: Vitaliy Zarubin Date: Wed, 18 Oct 2023 14:37:51 +0300 Subject: [PATCH] [example] Update TextureRegister --- .../embedder_texture/aurora/embedder_texture_plugin.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/packages/embedder_texture/aurora/embedder_texture_plugin.cpp b/packages/embedder_texture/aurora/embedder_texture_plugin.cpp index 882d36a..30b42b2 100644 --- a/packages/embedder_texture/aurora/embedder_texture_plugin.cpp +++ b/packages/embedder_texture/aurora/embedder_texture_plugin.cpp @@ -10,13 +10,6 @@ #include #include -const GLfloat pixels[] = { - 1, 0, 0, - 0, 1, 0, - 0, 0, 1, - 1, 1, 1 -}; - void EmbedderTexturePlugin::RegisterWithRegistrar(PluginRegistrar ®istrar) { registrar.RegisterMethodChannel("embedder_texture", @@ -75,7 +68,7 @@ void EmbedderTexturePlugin::onCreate(const MethodCall &call) std::cout << "++++++++++++++++++++" << std::endl; if (texture_id != 0) { -// call.TextureRegister(texture_id); + call.TextureRegister(texture_id); } call.SendSuccessResponse(texture_id);