mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 05:40:03 -04:00
Automatically generate screenshots for all examples (#2379)
This commit is contained in:
@@ -168,6 +168,12 @@ mod native;
|
||||
pub fn run_native(app_name: &str, native_options: NativeOptions, app_creator: AppCreator) {
|
||||
let renderer = native_options.renderer;
|
||||
|
||||
#[cfg(not(feature = "__screenshot"))]
|
||||
assert!(
|
||||
std::env::var("EFRAME_SCREENSHOT_TO").is_err(),
|
||||
"EFRAME_SCREENSHOT_TO found without compiling with the '__screenshot' feature"
|
||||
);
|
||||
|
||||
match renderer {
|
||||
#[cfg(feature = "glow")]
|
||||
Renderer::Glow => {
|
||||
|
||||
Reference in New Issue
Block a user