downgraded Glow and then consequently, Winit, glutin and Egui

Lmao
pull/4/head
Milk.H 2024-04-25 20:40:15 +01:00
parent 7759c4e991
commit ef8760a70f
Signed by: milk
GPG Key ID: 94C7CB70FFF80593
2 changed files with 12 additions and 12 deletions

View File

@ -8,12 +8,12 @@ edition = "2021"
[dependencies]
bevy_ecs = "0.13.2"
cgmath = "0.18.0"
egui = "0.27.2"
egui-winit = "0.27.2"
egui_glow = { version = "0.27.2", features = ["winit"] }
glow = "0.13.1"
glutin = "0.31.3"
glutin-winit = "0.4.2"
egui = "0.23.0"
egui-winit = "0.23.0"
egui_glow = { version = "0.23.0", features = ["winit"] }
glow = "0.12.3"
glutin = "0.30.10"
glutin-winit = "0.3.0"
image = "0.25.1"
raw-window-handle = "0.6.1"
winit = "0.29.15"
winit = "0.28.7"

View File

@ -24,10 +24,10 @@ fn main() {
// create Event Loop
let event_loop = EventLoopBuilder::new().build().unwrap();
let event_loop = EventLoopBuilder::new().build();
// set event loop to poll events every frame
event_loop.set_control_flow(winit::event_loop::ControlFlow::Poll);
//event_loop.set_control_flow(winit::event_loop::ControlFlow::Poll);
let window_builder = Some(WindowBuilder::new()
@ -119,7 +119,7 @@ fn main() {
// TODO write bevy Init code here
let _ = event_loop.run(move |event, control_flow| {
let _ = event_loop.run(move |event, _ ,control_flow| {
// new_frame for Framerate Locking
let new_frame = Instant::now() + Duration::from_secs_f32(1.0/60.0);
match event
@ -129,7 +129,7 @@ fn main() {
{
WindowEvent::CloseRequested => {
println!("closing gracefully");
control_flow.exit();
control_flow.set_exit();
},
WindowEvent::Resized(size) => {
if size.width !=0 && size.height !=0 {
@ -149,7 +149,7 @@ fn main() {
Event::Resumed => {
},
Event::AboutToWait => {
Event::MainEventsCleared => {
unsafe {
gl_surface.swap_buffers(&gl_context).unwrap();