slint/sixtyfps_runtime/rendering_backends/gl
Simon Hausmann d8988cae6c Prospective fix for making invoke_from_event_loop work better in WASM
When called from inside some winit event handler, we'd go straight to
`with_window_target` to get hold of the event proxy and send it. However
when called through some external event handler (DOM), the scoped
CURRENT_WINDOW_TARGET would not be set and MAYBE_LOOP_INSTANCE would
also be empty because `run` takes it. So instead we'd end up creating an
new event loop instance and the event would sit in there forever.

Instead, this change brings WASM in line with the other platforms by
using the dedicated event loop proxy (global_proxy). Because of the lack
of threading the dance of storage for that is a little different though.
2021-12-13 15:51:28 +01:00
..
fonts GL backend: add basic font fallback support for Linux 2021-09-17 18:58:18 +02:00
Cargo.toml Avoid the use of symlinks for source files 2021-12-13 15:51:10 +01:00
event_loop.rs Prospective fix for making invoke_from_event_loop work better in WASM 2021-12-13 15:51:28 +01:00
fonts.rs Bound Text contents width 2021-10-08 08:05:42 +02:00
glcontext.rs GL backend cleanup 2021-11-11 11:47:54 +01:00
glwindow.rs Internal cleanup in the GL renderer 2021-12-10 22:26:15 +01:00
images.rs Minor cleanup in GL backend 2021-12-11 13:22:27 +01:00
lib.rs Prospective fix for making invoke_from_event_loop work better in WASM 2021-12-13 15:51:28 +01:00
svg.rs GL backend: Fix rendering of SVGs with text inside 2021-09-30 14:32:46 +02:00