summaryrefslogtreecommitdiff
path: root/clients/subsurfaces.c
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2015-03-20 15:26:51 +0100
committerBryce Harrington <bryce@osg.samsung.com>2015-03-20 13:56:38 -0700
commit51a7ae5f89e9504f49bd98c7cd714e66c2a35580 (patch)
tree06acb4561ed8bbfc512eee565907e1f3b0ffdb3c /clients/subsurfaces.c
parent70eba3fbde63721fab950e12f848b92d652a85ad (diff)
downloadweston-51a7ae5f89e9504f49bd98c7cd714e66c2a35580.tar.gz
clients & tests: use eglGetPlatformDisplayEXT when supported
Reviewed-by: Derek Foreman <derekf@osg.samsung.com> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
Diffstat (limited to 'clients/subsurfaces.c')
-rw-r--r--clients/subsurfaces.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/clients/subsurfaces.c b/clients/subsurfaces.c
index fcbe496f..5b8fd8d0 100644
--- a/clients/subsurfaces.c
+++ b/clients/subsurfaces.c
@@ -38,6 +38,7 @@
#include <wayland-egl.h>
#include <GLES2/gl2.h>
#include <EGL/egl.h>
+#include <EGL/eglext.h>
#include "window.h"
@@ -215,7 +216,9 @@ egl_state_create(struct wl_display *display)
egl = calloc(1, sizeof *egl);
assert(egl);
- egl->dpy = eglGetDisplay(display);
+ egl->dpy =
+ weston_platform_get_egl_display(EGL_PLATFORM_WAYLAND_KHR,
+ display, NULL);
assert(egl->dpy);
ret = eglInitialize(egl->dpy, &major, &minor);