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") }