File tree Expand file tree Collapse file tree
crates/gdcef/src/cef_texture Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -85,7 +85,8 @@ pub struct CefTexture {
8585impl ITextureRect for CefTexture {
8686 fn init ( base : Base < TextureRect > ) -> Self {
8787 let mut texture2d_helper = CefTexture2D :: new_gd ( ) ;
88- // CefTexture owns the active runtime; helper is settings-only.
88+ // Runtime App state lives inside texture2d_helper; CefTexture owns its lifecycle and ticking,
89+ // so ensure any existing runtime in the helper is shut down before this instance takes over.
8990 texture2d_helper. bind_mut ( ) . shutdown ( ) ;
9091
9192 Self {
Original file line number Diff line number Diff line change @@ -87,6 +87,8 @@ impl CefTexture {
8787 accel_state. popup_rd_rid = Some ( new_rid) ;
8888 accel_state. popup_width = new_w;
8989 accel_state. popup_height = new_h;
90+ // Ensure no stale resize request remains after completing popup resize.
91+ accel_state. needs_popup_texture = None ;
9092 }
9193 } ) ;
9294 }
You can’t perform that action at this time.
0 commit comments