internal/ui: bug fix: compile failures with -tags=nintendosdk

Needed to use NativeDisplayType for eglGetDisplay.
This commit is contained in:
Hajime Hoshi 2023-01-03 20:38:43 +09:00
parent 6344273b7c
commit 312dce950c

View File

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