mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
only create our own Display* in embedding when using OSR
This commit is contained in:
parent
789a4973f7
commit
12d792f427
1 changed files with 3 additions and 1 deletions
|
@ -70,7 +70,9 @@ pub extern "C" fn cef_initialize(args: *const cef_main_args_t,
|
||||||
temp_opts.url = Url::parse(HOME_URL).unwrap();
|
temp_opts.url = Url::parse(HOME_URL).unwrap();
|
||||||
opts::set(temp_opts);
|
opts::set(temp_opts);
|
||||||
|
|
||||||
init_window();
|
if unsafe { (*settings).windowless_rendering_enabled != 0 } {
|
||||||
|
init_window();
|
||||||
|
}
|
||||||
|
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue