use GL backend for GUI to avoid conflicts with game window (#287)

This commit is contained in:
Logan McNaughton 2025-02-27 10:04:53 +01:00 committed by GitHub
parent 319d7c8553
commit 00964f06f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -169,6 +169,18 @@ async fn main() {
handle.join().unwrap();
} else {
let options = eframe::NativeOptions {
wgpu_options: eframe::egui_wgpu::WgpuConfiguration {
wgpu_setup: eframe::egui_wgpu::WgpuSetup::CreateNew(
eframe::egui_wgpu::WgpuSetupCreateNew {
instance_descriptor: eframe::egui_wgpu::wgpu::InstanceDescriptor {
backends: eframe::wgpu::Backends::GL,
..Default::default()
},
..Default::default()
},
),
..Default::default()
},
viewport: eframe::egui::ViewportBuilder::default()
.with_inner_size([854.0, 480.0])
.with_icon(