Skip to content

Commit

Permalink
Fix a deprication warning
Browse files Browse the repository at this point in the history
  • Loading branch information
paulotten committed Aug 10, 2022
1 parent 19d4011 commit d9d4f7e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion eframe/src/native/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,8 @@ fn run_and_exit(
mod glow_integration {
use std::sync::Arc;

use winit::event_loop::EventLoopBuilder;

use super::*;

struct GlowWinitApp {
Expand Down Expand Up @@ -424,7 +426,7 @@ mod glow_integration {
native_options: &epi::NativeOptions,
app_creator: epi::AppCreator,
) {
let event_loop = EventLoop::with_user_event();
let event_loop = EventLoopBuilder::with_user_event().build();
let glow_eframe = GlowWinitApp::new(&event_loop, app_name, native_options, app_creator);

if native_options.run_and_return {
Expand Down

0 comments on commit d9d4f7e

Please sign in to comment.