From 96e427cd6a86b765ba411135789319f3b8501902 Mon Sep 17 00:00:00 2001 From: "Jeffrey C. Ollie" Date: Fri, 10 Jan 2025 15:48:20 -0600 Subject: [PATCH] gtk: default to opengl debugging only on debug builds --- src/config/Config.zig | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/config/Config.zig b/src/config/Config.zig index 6c10213e8..144796554 100644 --- a/src/config/Config.zig +++ b/src/config/Config.zig @@ -1975,14 +1975,9 @@ keybind: Keybinds = .{}, /// must always be able to move themselves into an isolated cgroup. @"linux-cgroup-hard-fail": bool = false, -/// Enable or disable GTK's OpenGL debugging logs. The default depends on the -/// optimization level that Ghostty was built with: -/// -/// - `Debug`: `true` -/// - `ReleaseSafe`: `true` -/// - `ReleaseSmall`: `true` -/// - `ReleaseFast`: `false` -@"gtk-opengl-debug": bool = build_config.slow_runtime_safety, +/// Enable or disable GTK's OpenGL debugging logs. The default is `true` for +/// debug builds, `false` for all others. +@"gtk-opengl-debug": bool = builtin.mode == .Debug, /// After GTK 4.14.0, we need to force the GSK renderer to OpenGL as the default /// GSK renderer is broken on some systems. If you would like to override