mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 10:48:53 +01:00
internal/ui: bug fix: compile failures with -tags=nintendosdk
This commit is contained in:
parent
73985c6c96
commit
6344273b7c
@ -32,7 +32,7 @@ type egl struct {
|
||||
|
||||
func (e *egl) init(nativeWindowHandle C.NativeWindowType) error {
|
||||
// Initialize EGL
|
||||
e.display = C.eglGetDisplay(C.EGL_DEFAULT_DISPLAY)
|
||||
e.display = C.eglGetDisplay(C.EGLDisplay(C.EGL_DEFAULT_DISPLAY))
|
||||
if e.display == 0 {
|
||||
return fmt.Errorf("ui: eglGetDisplay failed")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user