mirror of
https://github.com/emilk/egui.git
synced 2026-08-29 04:40:03 -04:00
Use Rust edition 2024 (#7280)
This commit is contained in:
@@ -62,12 +62,8 @@ macro_rules! check_for_gl_error {
|
||||
/// ```
|
||||
#[macro_export]
|
||||
macro_rules! check_for_gl_error_even_in_release {
|
||||
($gl: expr) => {{
|
||||
$crate::check_for_gl_error_impl($gl, file!(), line!(), "")
|
||||
}};
|
||||
($gl: expr, $context: literal) => {{
|
||||
$crate::check_for_gl_error_impl($gl, file!(), line!(), $context)
|
||||
}};
|
||||
($gl: expr) => {{ $crate::check_for_gl_error_impl($gl, file!(), line!(), "") }};
|
||||
($gl: expr, $context: literal) => {{ $crate::check_for_gl_error_impl($gl, file!(), line!(), $context) }};
|
||||
}
|
||||
|
||||
#[doc(hidden)]
|
||||
|
||||
@@ -445,7 +445,9 @@ impl Painter {
|
||||
if let Some(callback) = callback.callback.downcast_ref::<CallbackFn>() {
|
||||
(callback.f)(info, self);
|
||||
} else {
|
||||
log::warn!("Warning: Unsupported render callback. Expected egui_glow::CallbackFn");
|
||||
log::warn!(
|
||||
"Warning: Unsupported render callback. Expected egui_glow::CallbackFn"
|
||||
);
|
||||
}
|
||||
|
||||
check_for_gl_error!(&self.gl, "callback");
|
||||
|
||||
@@ -47,11 +47,7 @@ impl ShaderVersion {
|
||||
.try_into()
|
||||
.unwrap();
|
||||
if es {
|
||||
if maj >= 3 {
|
||||
Self::Es300
|
||||
} else {
|
||||
Self::Es100
|
||||
}
|
||||
if maj >= 3 { Self::Es300 } else { Self::Es100 }
|
||||
} else if maj > 1 || (maj == 1 && min >= 40) {
|
||||
Self::Gl140
|
||||
} else {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
use ahash::HashSet;
|
||||
use egui::{ViewportId, ViewportOutput};
|
||||
pub use egui_winit;
|
||||
use egui_winit::winit;
|
||||
pub use egui_winit::EventResponse;
|
||||
use egui_winit::winit;
|
||||
|
||||
use crate::shader_version::ShaderVersion;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user