app/internal/window: work around missing MESA_EGL_NO_X11_HEADERS support

Some versions of eglplatform.h don't support the MESA_EGL_NO_X11_HEADER
define for cross-platform definitions of the EGL types. Remove the
define and use an explicit cast instead.

Fixes gio#46

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-10-26 11:34:44 +02:00
parent 88adc0ee1a
commit fff9293c9b
2 changed files with 1 additions and 2 deletions
-1
View File
@@ -4,7 +4,6 @@ package window
/*
#cgo LDFLAGS: -lEGL
#cgo CFLAGS: -DMESA_EGL_NO_X11_HEADERS
#include <EGL/egl.h>
#include <EGL/eglext.h>
+1 -1
View File
@@ -38,7 +38,7 @@ func (w *window) eglDestroy() {
}
func (w *window) eglDisplay() _EGLNativeDisplayType {
return _EGLNativeDisplayType(w.display())
return _EGLNativeDisplayType(unsafe.Pointer(w.display()))
}
func (w *window) eglWindow(visID int) (_EGLNativeWindowType, int, int, error) {