forked from 1b-agent/opencadstudio-upstream
feat(gpu): route legacy hardware to OpenGL, add hardware info to About, and expose Graphics options tab
This commit is contained in:
1 parent
81bb8d48cf
commit
abf302eba5
12 files changed
+838
-21
No files matched your search
+3
-2
@@ -194,8 +194,9 @@ fn main() -> iced::Result {
|
||||
// The probe enables the packed renderer automatically on GPUs without
|
||||
// shader storage buffers; an explicit `--compat-renderer` does the
|
||||
// same without the notice.
|
||||
let compat_renderer = args.compat_renderer || gpu.compat_renderer;
|
||||
let gpu_compat_auto = !args.compat_renderer && gpu.compat_renderer;
|
||||
let saved_compat = OpenCADStudio::gpu_backend::load_prefs().compat_renderer;
|
||||
let compat_renderer = args.compat_renderer || saved_compat || gpu.compat_renderer;
|
||||
let gpu_compat_auto = !args.compat_renderer && !saved_compat && gpu.compat_renderer;
|
||||
let _ = cli::GUI_CONFIG.set(cli::GuiConfig {
|
||||
files: if args.new { Vec::new() } else { args.files },
|
||||
new: args.new,
|
||||
|
||||
Reference in new issue
Block a user