remove global render texture instance

Signed-off-by: dignow <linlong1265@gmail.com>
This commit is contained in:
dignow
2023-08-09 12:46:12 +08:00
parent 3ecf0cc685
commit 9a7a600407
3 changed files with 1 additions and 12 deletions

View File

@@ -116,11 +116,7 @@ class _RemotePageState extends State<RemotePage>
Wakelock.enable();
}
// Register texture.
if (mainGetLocalBoolOptionSync(kOptionOpenNewConnInTabs)) {
_renderTexture = RenderTexture();
} else {
_renderTexture = renderTexture;
}
_renderTexture = RenderTexture();
_renderTexture.create(sessionId);
_ffi.ffiModel.updateEventListener(sessionId, widget.id);