diff options
Diffstat (limited to 'src/egl/main')
-rw-r--r-- | src/egl/main/Makefile | 6 | ||||
-rw-r--r-- | src/egl/main/egldisplay.c | 1 | ||||
-rw-r--r-- | src/egl/main/egldisplay.h | 1 |
3 files changed, 8 insertions, 0 deletions
diff --git a/src/egl/main/Makefile b/src/egl/main/Makefile index 5e5090ebc04..57fb691ea9d 100644 --- a/src/egl/main/Makefile +++ b/src/egl/main/Makefile @@ -94,6 +94,9 @@ endif ifeq ($(firstword $(EGL_PLATFORMS)),fbdev) EGL_NATIVE_PLATFORM=_EGL_PLATFORM_FBDEV endif +ifeq ($(firstword $(EGL_PLATFORMS)),null) +EGL_NATIVE_PLATFORM=_EGL_PLATFORM_NULL +endif ifneq ($(findstring x11, $(EGL_PLATFORMS)),) LOCAL_CFLAGS += -DHAVE_X11_PLATFORM @@ -107,6 +110,9 @@ endif ifneq ($(findstring fbdev, $(EGL_PLATFORMS)),) LOCAL_CFLAGS += -DHAVE_FBDEV_PLATFORM endif +ifneq ($(findstring null, $(EGL_PLATFORMS)),) +LOCAL_CFLAGS += -DHAVE_NULL_PLATFORM +endif LOCAL_CFLAGS += \ -D_EGL_NATIVE_PLATFORM=$(EGL_NATIVE_PLATFORM) \ diff --git a/src/egl/main/egldisplay.c b/src/egl/main/egldisplay.c index 1d05e57c429..39ba8830cda 100644 --- a/src/egl/main/egldisplay.c +++ b/src/egl/main/egldisplay.c @@ -73,6 +73,7 @@ static const struct { { _EGL_PLATFORM_WAYLAND, "wayland" }, { _EGL_PLATFORM_DRM, "drm" }, { _EGL_PLATFORM_FBDEV, "fbdev" }, + { _EGL_PLATFORM_NULL, "null" }, { _EGL_PLATFORM_ANDROID, "android" } }; diff --git a/src/egl/main/egldisplay.h b/src/egl/main/egldisplay.h index cddea803c24..67a2e244e20 100644 --- a/src/egl/main/egldisplay.h +++ b/src/egl/main/egldisplay.h @@ -44,6 +44,7 @@ enum _egl_platform_type { _EGL_PLATFORM_WAYLAND, _EGL_PLATFORM_DRM, _EGL_PLATFORM_FBDEV, + _EGL_PLATFORM_NULL, _EGL_PLATFORM_ANDROID, _EGL_NUM_PLATFORMS, |