summaryrefslogtreecommitdiff
path: root/src/renderer/OpenGL.zig
diff options
context:
space:
mode:
authorLeah Amelia Chen <hi@pluie.me>2025-09-05 10:07:36 +0200
committerLeah Amelia Chen <hi@pluie.me>2025-09-05 10:10:52 +0200
commit93debc439ccc87e8dee82d73c49a693a368b0685 (patch)
treec9a37c06565fbb4b362edbba59d7fda1466f61d1 /src/renderer/OpenGL.zig
parentac52af27d3e0fa8c1ac466585df1696bc9817670 (diff)
gtk: the Future is Now
Diffstat (limited to 'src/renderer/OpenGL.zig')
-rw-r--r--src/renderer/OpenGL.zig8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/renderer/OpenGL.zig b/src/renderer/OpenGL.zig
index 8a1c465e9..e572806d1 100644
--- a/src/renderer/OpenGL.zig
+++ b/src/renderer/OpenGL.zig
@@ -165,7 +165,7 @@ 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_ng,
+ apprt.gtk,
=> try prepareContext(null),
apprt.embedded => {
@@ -200,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_ng => {
+ apprt.gtk => {
// 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
@@ -222,7 +222,7 @@ pub fn threadExit(self: *const OpenGL) void {
switch (apprt.runtime) {
else => @compileError("unsupported app runtime for OpenGL"),
- apprt.gtk_ng => {
+ apprt.gtk => {
// We don't need to do any unloading for GTK because we may
// be sharing the global bindings with other windows.
},
@@ -237,7 +237,7 @@ pub fn displayRealized(self: *const OpenGL) void {
_ = self;
switch (apprt.runtime) {
- apprt.gtk_ng => prepareContext(null) catch |err| {
+ apprt.gtk => prepareContext(null) catch |err| {
log.warn(
"Error preparing GL context in displayRealized, err={}",
.{err},