updateSource method
Implementation
void updateSource(FlutterAngleTexture texture, [WebGLTexture? sourceTexture]) async {
if(_disposed) return;
if (sourceTexture != null) {
gl.glBindFramebuffer(GL_FRAMEBUFFER, texture.fboId);
gl.glClearColor(0.0, 0.0, 0.0, 0.0);
gl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT);
gl.glViewport(0, 0, (texture.options.width*texture.options.dpr).toInt(),( texture.options.height*texture.options.dpr).toInt());
_worker?.renderTexture(sourceTexture, isFBO: Platform.isAndroid);
gl.glFinish();
}
}