Browse Source

[example] Update TextureRegister

embedder_texture
Vitaliy Zarubin 1 year ago
parent
commit
4e6ff5e419
  1. 9
      packages/embedder_texture/aurora/embedder_texture_plugin.cpp

9
packages/embedder_texture/aurora/embedder_texture_plugin.cpp

@ -10,13 +10,6 @@
#include <GLES2/gl2.h> #include <GLES2/gl2.h>
#include <GLES2/gl2ext.h> #include <GLES2/gl2ext.h>
const GLfloat pixels[] = {
1, 0, 0,
0, 1, 0,
0, 0, 1,
1, 1, 1
};
void EmbedderTexturePlugin::RegisterWithRegistrar(PluginRegistrar &registrar) void EmbedderTexturePlugin::RegisterWithRegistrar(PluginRegistrar &registrar)
{ {
registrar.RegisterMethodChannel("embedder_texture", registrar.RegisterMethodChannel("embedder_texture",
@ -75,7 +68,7 @@ void EmbedderTexturePlugin::onCreate(const MethodCall &call)
std::cout << "++++++++++++++++++++" << std::endl; std::cout << "++++++++++++++++++++" << std::endl;
if (texture_id != 0) { if (texture_id != 0) {
// call.TextureRegister(texture_id); call.TextureRegister(texture_id);
} }
call.SendSuccessResponse(texture_id); call.SendSuccessResponse(texture_id);

Loading…
Cancel
Save