mirror-ghostty/src
Dominique Martinet f37acdf6a0 gtk/opengl: print an error when OpenGL version is too old
#1123 added a warning when the OpenGL version is too old, but
it is never used because GTK enforces the version set with
gl_area.setRequiredVersion() before prepareContext() is called:
we end up with a generic "failed to make GL context" error:
warning(gtk_ghostty_surface): failed to make GL context current: Unable to create a GL context
warning(gtk_ghostty_surface): this error is almost always due to a library, driver, or GTK issue
warning(gtk_ghostty_surface): this is a common cause of this issue: https://ghostty.org/docs/help/gtk-opengl-context

This patch removes the requirement at the GTK level and lets the ghostty
renderer check, now failing as follow:
info(opengl): loaded OpenGL 4.2
error(opengl): OpenGL version is too old. Ghostty requires OpenGL 4.3
warning(gtk_ghostty_surface): failed to initialize surface err=error.OpenGLOutdated
warning(gtk_ghostty_surface): surface failed to initialize err=error.SurfaceError

(Note that this does not render a ghostty window, unlike the previous
error which rendered the "Unable to acquire an OpenGL context for
rendering." view, so while the error itself is easier to understand it
might be harder to view)
2025-12-16 13:30:37 -08:00
..
apprt gtk/opengl: print an error when OpenGL version is too old 2025-12-16 13:30:37 -08:00
benchmark benchmark: add option to microbenchmark OSC parser 2025-12-10 22:31:27 -06:00
build Fix macOS log command for Ghostty 2025-12-17 05:16:27 +08:00
cli remove auto theme include in config-template 2025-12-17 01:50:53 +08:00
config config: better docs for split-preserve-zoom 2025-12-16 11:27:51 -08:00
crash Zig 0.15: zig build test macOS 2025-10-03 07:10:43 -07:00
datastruct Remove unused imports 2025-11-27 13:37:53 -08:00
extra Remove unused imports 2025-11-27 13:37:53 -08:00
font Remove unused imports 2025-11-27 13:37:53 -08:00
input update some copy for the background opacity toggle 2025-12-16 11:40:12 -08:00
inspector Remove unused imports 2025-11-27 13:37:53 -08:00
lib Remove unused imports 2025-11-27 13:37:53 -08:00
os OSC parser microbenchmarking (#9867) 2025-12-16 07:27:16 -08:00
renderer gtk/opengl: print an error when OpenGL version is too old 2025-12-16 13:30:37 -08:00
shell-integration zsh: removed unused self_dir variable (#9924) 2025-12-16 06:38:56 -08:00
simd Remove unused imports 2025-11-27 13:37:53 -08:00
stb Fix typos 2025-10-03 18:52:26 +02:00
synthetic benchmark: add option to microbenchmark OSC parser 2025-12-10 22:31:27 -06:00
terminal terminal: CSI S compatiblity improvements 2025-12-14 14:36:42 -08:00
terminfo ci: cleanup 2025-10-03 07:10:43 -07:00
termio terminal: CSI S compatiblity improvements 2025-12-14 14:36:42 -08:00
unicode unicode: don't narrow invalid text presentation (VS15) sequences 2025-11-23 22:39:21 -05:00
App.zig Remove unused imports 2025-11-27 13:37:53 -08:00
Command.zig Zig 0.15: zig build test 2025-10-03 07:10:43 -07:00
Surface.zig macos: add `toggle_background_opacity` keybind action 2025-12-16 11:32:10 -08:00
apprt.zig Remove unused imports 2025-11-27 13:37:53 -08:00
build_config.zig Remove unused imports 2025-11-27 13:37:53 -08:00
cli.zig
config.zig Add `.ghostty` extension to `config` (#8885) 2025-10-12 13:48:06 -07:00
fastmem.zig perf: replace `std.debug.assert` with inlined version 2025-11-17 12:13:56 -07:00
file_type.zig
global.zig logging: document GHOSTTY_LOG and make it more flexible 2025-12-15 11:54:36 -08:00
helpgen.zig Zig 0.15: zig build test 2025-10-03 07:10:43 -07:00
input.zig input: use std.Io.Writer for key encoder, new API, expose via libghostty 2025-10-04 20:19:39 -07:00
lib_vt.zig terminal: highlights 2025-11-24 19:55:27 -08:00
main.zig
main_bench.zig Remove unused imports 2025-11-27 13:37:53 -08:00
main_build_data.zig flush output for our builddata executable 2025-10-03 13:32:15 -07:00
main_c.zig perf: replace `std.debug.assert` with inlined version 2025-11-17 12:13:56 -07:00
main_gen.zig Remove unused imports 2025-11-27 13:37:53 -08:00
main_ghostty.zig logging: document GHOSTTY_LOG and make it more flexible 2025-12-15 11:54:36 -08:00
main_wasm.zig
math.zig
pty.zig Zig 0.15: zig build GTK exe 2025-10-03 07:10:43 -07:00
quirks.zig quirks: remove type signature for inlineAssert 2025-12-08 13:19:16 +08:00
renderer.zig Remove unused imports 2025-11-27 13:37:53 -08:00
surface_mouse.zig Remove unused imports 2025-11-27 13:37:53 -08:00
termio.zig search thread needs to take an allocated needle 2025-11-26 08:50:04 -08:00