mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-12-12 02:57:22 +00:00
Do not unregister texture if move to new window
Signed-off-by: dignow <linlong1265@gmail.com>
This commit is contained in:
@@ -31,9 +31,11 @@ class RenderTexture {
|
||||
}
|
||||
}
|
||||
|
||||
destroy() async {
|
||||
destroy(bool unregisterTexture) async {
|
||||
if (useTextureRender && _textureKey != -1 && _sessionId != null) {
|
||||
platformFFI.registerTexture(_sessionId!, 0);
|
||||
if (unregisterTexture) {
|
||||
platformFFI.registerTexture(_sessionId!, 0);
|
||||
}
|
||||
await textureRenderer.closeTexture(_textureKey);
|
||||
_textureKey = -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user