Windows: graphics fallbacks, a visible start error, the C runtime inside the exe
A Windows 10 user saw the program quit silently after SmartScreen: a Windows program has no console, so a failed graphics start left no trace. A start that fails or dies before its first frame now tries again without Vulkan, with OpenGL, then with software drawing (WARP), and keeps the mode that worked; what no mode overcomes, and any panic, goes to a message box and chesspenguin.log. The C runtime is linked statically (no VCRUNTIME140.dll needed); CI checks that and starts the window on the GPU-less Windows runner. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
5f7e0f5178
commit
16b7572d57
8 changed files with 294 additions and 4 deletions
|
|
@ -726,6 +726,10 @@ impl App {
|
|||
|
||||
impl eframe::App for App {
|
||||
fn ui(&mut self, ui: &mut egui::Ui, _frame: &mut eframe::Frame) {
|
||||
// The window has shown its first frame: this graphics mode works.
|
||||
if ui.ctx().cumulative_frame_nr() >= 1 {
|
||||
crate::graphics::started();
|
||||
}
|
||||
let ctx = ui.ctx().clone();
|
||||
if self.applied_dark != Some(self.settings.dark_mode) {
|
||||
ctx.set_visuals(if self.settings.dark_mode {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue