Before EGL_EXT_platform_base and EGL 1.5, when using Mesa the best way to select the EGL platform was to set the EGL_PLATFORM environment variable. Now that a standard way exists, eglGetPlatformDisplay, let's use it when available.
After this series, I have a series to add support for EGL_MESA_platform_surfaceless. This branch lives at https://github.com/chadversary/waffle/commits/review/eglGetPlatformDisplay-v01 Chad Versace (7): egl: Define EGL_PLATFORM_* enums egl: Update wegl_platform_init signature egl: Move each platform's setenv("EGL_PLATFORM") into core EGL code egl: Query client extensions string egl: Optionally dlsym eglGetPlatformDisplay egl: Update wegl_display_init signature egl: Use eglGetPlatformDisplay when possible src/waffle/android/droid_display.c | 3 +- src/waffle/egl/wegl_display.c | 24 +++++++++--- src/waffle/egl/wegl_display.h | 2 +- src/waffle/egl/wegl_imports.h | 30 ++++++++++++++ src/waffle/egl/wegl_platform.c | 73 ++++++++++++++++++++++++++++++++++- src/waffle/egl/wegl_platform.h | 22 ++++++++++- src/waffle/gbm/wgbm_display.c | 2 +- src/waffle/gbm/wgbm_platform.c | 8 +--- src/waffle/wayland/wayland_display.c | 2 +- src/waffle/wayland/wayland_platform.c | 7 +--- src/waffle/xegl/xegl_display.c | 2 +- src/waffle/xegl/xegl_platform.c | 8 +--- 12 files changed, 150 insertions(+), 33 deletions(-) -- 2.10.0 _______________________________________________ waffle mailing list waffle@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/waffle