mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 16:56:09 +03:00
Fix issue 1667
When GTK 4.14 released, it used ngl by default with GSK_RENDERER. It leads to destroy VAO state when we closed tab or detach tab. It handles it incorrectly with opengl's engine. This is a fix for that issue.
This commit is contained in:
@ -81,6 +81,9 @@ pub fn init(core_app: *CoreApp, opts: Options) !App {
|
|||||||
// Upstream issue: https://gitlab.gnome.org/GNOME/gtk/-/issues/6589
|
// Upstream issue: https://gitlab.gnome.org/GNOME/gtk/-/issues/6589
|
||||||
_ = internal_os.setenv("GDK_DEBUG", "opengl,gl-disable-gles");
|
_ = internal_os.setenv("GDK_DEBUG", "opengl,gl-disable-gles");
|
||||||
|
|
||||||
|
// We need to export GSK_RENDERER to opengl because GTK uses ngl by default after 4.14
|
||||||
|
_ = internal_os.setenv("GSK_RENDERER", "opengl");
|
||||||
|
|
||||||
// Load our configuration
|
// Load our configuration
|
||||||
var config = try Config.load(core_app.alloc);
|
var config = try Config.load(core_app.alloc);
|
||||||
errdefer config.deinit();
|
errdefer config.deinit();
|
||||||
|
Reference in New Issue
Block a user