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

This commit is contained in:
Hajime Hoshi 2023-01-03 20:29:05 +09:00
parent 73985c6c96
commit 6344273b7c

View File

@ -32,7 +32,7 @@ type egl struct {
func (e *egl) init(nativeWindowHandle C.NativeWindowType) error { func (e *egl) init(nativeWindowHandle C.NativeWindowType) error {
// Initialize EGL // Initialize EGL
e.display = C.eglGetDisplay(C.EGL_DEFAULT_DISPLAY) e.display = C.eglGetDisplay(C.EGLDisplay(C.EGL_DEFAULT_DISPLAY))
if e.display == 0 { if e.display == 0 {
return fmt.Errorf("ui: eglGetDisplay failed") return fmt.Errorf("ui: eglGetDisplay failed")
} }