From 425c86179791cd32e2d4ce0ae7f269940b4b0663 Mon Sep 17 00:00:00 2001 From: Can Celik Date: Thu, 10 Sep 2026 21:51:57 +0300 Subject: chore: upgrade libghostty and preserve terminal behavior (#3906) --- vendor/libghostty-vt/src/renderer/OpenGL.zig | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'vendor/libghostty-vt/src/renderer/OpenGL.zig') diff --git a/vendor/libghostty-vt/src/renderer/OpenGL.zig b/vendor/libghostty-vt/src/renderer/OpenGL.zig index 4b01da0c..40c11f60 100644 --- a/vendor/libghostty-vt/src/renderer/OpenGL.zig +++ b/vendor/libghostty-vt/src/renderer/OpenGL.zig @@ -335,6 +335,12 @@ pub fn presentLastTarget(self: *OpenGL) !void { if (self.last_target) |target| try self.present(target); } +/// Called when the renderer released its GPU resources; the last +/// presented target is deinited with them so we must drop our copy. +pub fn gpuResourcesReleased(self: *OpenGL) void { + self.last_target = null; +} + /// Returns the options to use when constructing buffers. pub inline fn bufferOptions(self: OpenGL) bufferpkg.Options { _ = self; -- cgit v1.2.3