aboutsummaryrefslogtreecommitdiffstats
path: root/src/egl/main/egldisplay.c
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2011-09-20 14:01:26 +0800
committerChia-I Wu <[email protected]>2011-09-20 17:44:15 +0800
commit5eca41665bbd6deb5ffff011e47ff0cec41916da (patch)
treef136471780d9a1a54ec5d2e6bf706c1df5f4e474 /src/egl/main/egldisplay.c
parentfb4ceb9638cbedc09446e3c21c15d9dfd72b7a6d (diff)
egl: add null platform
The null platform has no window or pixmap surface (but pbuffer surface). And the only valid display is EGL_DEFAULT_DISPLAY. It is useful for offscreen rendering. It works everywhere becase no window system is required.
Diffstat (limited to 'src/egl/main/egldisplay.c')
-rw-r--r--src/egl/main/egldisplay.c1
1 files changed, 1 insertions, 0 deletions
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" }
};