diff options
| author | Leah Amelia Chen <hi@pluie.me> | 2025-09-04 17:19:42 +0200 |
|---|---|---|
| committer | Leah Amelia Chen <hi@pluie.me> | 2025-09-05 00:21:41 +0200 |
| commit | ac52af27d3e0fa8c1ac466585df1696bc9817670 (patch) | |
| tree | 0e12070d5471661b4bfb1f56c86a9130038f52a8 /src/renderer/OpenGL.zig | |
| parent | c3e7857a2c5031e8274a411c84695351e8e3fffe (diff) | |
gtk: nuke the legacy apprt from orbit
We don't really have any large outstanding regressions on -ng to warrant
keeping this alive anymore. ¡Adiós!
Diffstat (limited to 'src/renderer/OpenGL.zig')
| -rw-r--r-- | src/renderer/OpenGL.zig | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/renderer/OpenGL.zig b/src/renderer/OpenGL.zig index 908e1c828..8a1c465e9 100644 --- a/src/renderer/OpenGL.zig +++ b/src/renderer/OpenGL.zig @@ -165,7 +165,6 @@ pub fn surfaceInit(surface: *apprt.Surface) !void { else => @compileError("unsupported app runtime for OpenGL"), // GTK uses global OpenGL context so we load from null. - apprt.gtk, apprt.gtk_ng, => try prepareContext(null), @@ -201,7 +200,7 @@ pub fn threadEnter(self: *const OpenGL, surface: *apprt.Surface) !void { switch (apprt.runtime) { else => @compileError("unsupported app runtime for OpenGL"), - apprt.gtk, apprt.gtk_ng => { + apprt.gtk_ng => { // GTK doesn't support threaded OpenGL operations as far as I can // tell, so we use the renderer thread to setup all the state // but then do the actual draws and texture syncs and all that @@ -223,7 +222,7 @@ pub fn threadExit(self: *const OpenGL) void { switch (apprt.runtime) { else => @compileError("unsupported app runtime for OpenGL"), - apprt.gtk, apprt.gtk_ng => { + apprt.gtk_ng => { // We don't need to do any unloading for GTK because we may // be sharing the global bindings with other windows. }, @@ -238,7 +237,7 @@ pub fn displayRealized(self: *const OpenGL) void { _ = self; switch (apprt.runtime) { - apprt.gtk, apprt.gtk_ng => prepareContext(null) catch |err| { + apprt.gtk_ng => prepareContext(null) catch |err| { log.warn( "Error preparing GL context in displayRealized, err={}", .{err}, |
