chore: Fix webview example (#1360)

This commit is contained in:
Sunli 2025-10-13 10:10:35 +08:00 committed by GitHub
parent 32b8d65075
commit 8a63fd67ab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -24,6 +24,10 @@ impl Render for Example {
}
fn main() {
#[cfg(target_os = "windows")]
unsafe {
std::env::set_var("GPUI_DISABLE_DIRECT_COMPOSITION", "true");
}
let app = Application::new().with_assets(Assets);
app.run(move |cx| {