aboutsummaryrefslogtreecommitdiff
path: root/vendor/libghostty-vt/src/renderer/OpenGL.zig
diff options
context:
space:
mode:
authorCan Celik <ogulcancelik@gmail.com>2026-09-10 21:51:57 +0300
committerGitHub <noreply@github.com>2026-09-10 21:51:57 +0300
commit425c86179791cd32e2d4ce0ae7f269940b4b0663 (patch)
treee52c4383a6d69216cbe2a32638bf90841d7e2189 /vendor/libghostty-vt/src/renderer/OpenGL.zig
parent90e947a6e26e02f10ec7f1694c4eb5b78a86406b (diff)
chore: upgrade libghostty and preserve terminal behavior (#3906)
Diffstat (limited to 'vendor/libghostty-vt/src/renderer/OpenGL.zig')
-rw-r--r--vendor/libghostty-vt/src/renderer/OpenGL.zig6
1 files changed, 6 insertions, 0 deletions
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;