mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 19:28:57 +01:00
internal/ui: bug fix: compile failures with -tags=nintendosdk
Needed to use NativeDisplayType for eglGetDisplay.
This commit is contained in:
parent
6344273b7c
commit
312dce950c
@ -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.EGLDisplay(C.EGL_DEFAULT_DISPLAY))
|
e.display = C.eglGetDisplay(C.NativeDisplayType(C.EGL_DEFAULT_DISPLAY))
|
||||||
if e.display == 0 {
|
if e.display == 0 {
|
||||||
return fmt.Errorf("ui: eglGetDisplay failed")
|
return fmt.Errorf("ui: eglGetDisplay failed")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user