mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 16:56:09 +03:00
apprt/gtk: use new imgui opengl API
This commit is contained in:
@ -161,7 +161,7 @@ fn gtkRealize(area: *c.GtkGLArea, ud: ?*anyopaque) callconv(.C) void {
|
|||||||
// initialize the ImgUI OpenGL backend for our context.
|
// initialize the ImgUI OpenGL backend for our context.
|
||||||
const self: *ImguiWidget = @ptrCast(@alignCast(ud.?));
|
const self: *ImguiWidget = @ptrCast(@alignCast(ud.?));
|
||||||
cimgui.c.igSetCurrentContext(self.ig_ctx);
|
cimgui.c.igSetCurrentContext(self.ig_ctx);
|
||||||
cimgui.c.ImGui_ImplOpenGL3_Init(null);
|
_ = cimgui.c.ImGui_ImplOpenGL3_Init(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
fn gtkUnrealize(area: *c.GtkGLArea, ud: ?*anyopaque) callconv(.C) void {
|
fn gtkUnrealize(area: *c.GtkGLArea, ud: ?*anyopaque) callconv(.C) void {
|
||||||
|
Reference in New Issue
Block a user