mirror of
https://github.com/jwinterm/grim.git
synced 2026-10-21 15:38:32 +02:00
ui: wgpu renderer for macos, desktop content background fix, do not show left line for camera content at dual panel mode
This commit is contained in:
+3
-3
@@ -138,9 +138,9 @@ fn start_desktop_gui(platform: grim::gui::platform::Desktop) {
|
||||
viewport,
|
||||
..Default::default()
|
||||
};
|
||||
// Use Glow renderer for Windows and Mac.
|
||||
// Use Glow renderer for Windows.
|
||||
let is_win = os == egui::os::OperatingSystem::Windows;
|
||||
options.renderer = if is_win || is_mac {
|
||||
options.renderer = if is_win {
|
||||
eframe::Renderer::Glow
|
||||
} else {
|
||||
eframe::Renderer::Wgpu
|
||||
@@ -151,7 +151,7 @@ fn start_desktop_gui(platform: grim::gui::platform::Desktop) {
|
||||
match grim::start(options.clone(), grim::app_creator(app)) {
|
||||
Ok(_) => {}
|
||||
Err(e) => {
|
||||
if is_win || is_mac {
|
||||
if is_win {
|
||||
panic!("{}", e);
|
||||
}
|
||||
// Start with another renderer on error.
|
||||
|
||||
Reference in New Issue
Block a user