From 02ed7f4b2c4e97391ced22efbeb18f371540cf3f Mon Sep 17 00:00:00 2001 From: Drew Weymouth Date: Mon, 17 Jun 2024 08:56:02 -0700 Subject: [PATCH] remove EGLSurface from WaylandWindowContext for now --- driver/native.go | 3 --- internal/driver/glfw/window_wayland.go | 2 -- 2 files changed, 5 deletions(-) diff --git a/driver/native.go b/driver/native.go index 74519c4974..31b575d135 100644 --- a/driver/native.go +++ b/driver/native.go @@ -68,7 +68,4 @@ type X11WindowContext struct { type WaylandWindowContext struct { // WaylandSurface is the handle to the native Wayland surface. WaylandSurface uintptr - - // EGLSurface is the handle to the native EGL surface. - EGLSurface uintptr } diff --git a/internal/driver/glfw/window_wayland.go b/internal/driver/glfw/window_wayland.go index e2edb8c1e5..68a1f115b3 100644 --- a/internal/driver/glfw/window_wayland.go +++ b/internal/driver/glfw/window_wayland.go @@ -21,11 +21,9 @@ func (w *window) RunNative(f func(any)) { var waylandSurface, eglSurface uintptr if v := w.view(); v != nil { waylandSurface = uintptr(unsafe.Pointer(v.GetWaylandWindow())) - eglSurface = uintptr(unsafe.Pointer(v.GetEGLSurface())) } f(driver.WaylandWindowContext{ WaylandSurface: waylandSurface, - EGLSurface: eglSurface, }) }) }