Skip to content

Commit

Permalink
remove EGLSurface from WaylandWindowContext for now
Browse files Browse the repository at this point in the history
  • Loading branch information
dweymouth committed Jun 17, 2024
1 parent f3617cc commit 02ed7f4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
3 changes: 0 additions & 3 deletions driver/native.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
2 changes: 0 additions & 2 deletions internal/driver/glfw/window_wayland.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,9 @@ func (w *window) RunNative(f func(any)) {
var waylandSurface, eglSurface uintptr

Check failure on line 21 in internal/driver/glfw/window_wayland.go

View workflow job for this annotation

GitHub Actions / platform_tests (1.19.x, ubuntu-latest)

eglSurface declared but not used

Check failure on line 21 in internal/driver/glfw/window_wayland.go

View workflow job for this annotation

GitHub Actions / platform_tests (1.21.x, ubuntu-latest)

eglSurface declared and not used
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,
})
})
}

0 comments on commit 02ed7f4

Please sign in to comment.