ui/app: (wayland) define WL_EGL_PLATFORM=1 to force EGL in Wayland mode

Including wayland-egl.h will also set WL_EGL_PLATFORM, but generic
egl code in egl_linux.go cannot do that.

For gio#35

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-09-02 15:11:20 +02:00
parent dc62058bce
commit 52dd762405
+1
View File
@@ -11,6 +11,7 @@ import (
/*
#cgo LDFLAGS: -lwayland-egl
#cgo CFLAGS: -DWL_EGL_PLATFORM
#include <wayland-client.h>
#include <wayland-egl.h>