From 312dce950ced667f168d6a325a1519ce483da8d3 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Tue, 3 Jan 2023 20:38:43 +0900 Subject: [PATCH] internal/ui: bug fix: compile failures with -tags=nintendosdk Needed to use NativeDisplayType for eglGetDisplay. --- internal/ui/egl_nintendosdk.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/ui/egl_nintendosdk.go b/internal/ui/egl_nintendosdk.go index 0b8c8993c..85b397046 100644 --- a/internal/ui/egl_nintendosdk.go +++ b/internal/ui/egl_nintendosdk.go @@ -32,7 +32,7 @@ type egl struct { func (e *egl) init(nativeWindowHandle C.NativeWindowType) error { // Initialize EGL - e.display = C.eglGetDisplay(C.EGLDisplay(C.EGL_DEFAULT_DISPLAY)) + e.display = C.eglGetDisplay(C.NativeDisplayType(C.EGL_DEFAULT_DISPLAY)) if e.display == 0 { return fmt.Errorf("ui: eglGetDisplay failed") }