mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-03-17 18:21:02 +03:00
fix nextRgba not called when switching to texture render (#8792)
Because rgba buffer render doesn't support multi display, when switch to multi display, it is possible that rgba.valid has been set to valid but nextRgab is not called, when switching back to single display, rgba.valid is still true. Fix by rgba buffer, rgba texture and gpu texture using different messages. Signed-off-by: 21pages <sunboeasy@gmail.com>
This commit is contained in:
@@ -794,7 +794,7 @@ impl InvokeUiSession for FlutterHandler {
|
||||
for (_, session) in self.session_handlers.read().unwrap().iter() {
|
||||
if session.renderer.on_texture(display, texture) {
|
||||
if let Some(stream) = &session.event_stream {
|
||||
stream.add(EventToUI::Texture(display));
|
||||
stream.add(EventToUI::Texture(display, true));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1087,7 +1087,7 @@ impl FlutterHandler {
|
||||
if use_texture_render || session.displays.len() > 1 {
|
||||
if session.renderer.on_rgba(display, rgba) {
|
||||
if let Some(stream) = &session.event_stream {
|
||||
stream.add(EventToUI::Rgba(display));
|
||||
stream.add(EventToUI::Texture(display, false));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user